ipdate
This commit is contained in:
@@ -59,7 +59,15 @@ class RebootVmJob 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,
|
||||
'rebooted',
|
||||
__('Máy ảo đã được khởi động lại thành công.')
|
||||
);
|
||||
|
||||
$product->update(['status' => 3]); // Processing
|
||||
|
||||
// In VMJobs: $jobs = new WaitStatusVirtualMachine($product->vmware_id,$serviceVCenter,$product->customer_id,false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user