This commit is contained in:
pbao9
2026-01-27 17:24:48 +07:00
parent 057ba58760
commit d2532bcddd
20 changed files with 870 additions and 189 deletions
+9 -1
View File
@@ -59,7 +59,15 @@ class StopVmJob implements ShouldQueue
// Clear VM info cache
\Illuminate\Support\Facades\Cache::forget('vm_info_' . $product->vmware_id);
$product->update(['status' => 3]); // Processing
// Dispatch Event to Frontend
\App\Events\VirtualMachineStatusChanged::dispatch(
$this->userId,
$product->vmware_id,
'stopped',
__('Máy ảo đã được tắt thành công.')
);
$product->update(['status' => 3]); // Processing
dispatch(new WaitStatusVirtualMachine(
$product->vmware_id,