Implement VM provision locking mechanism and enhance VM job handling
This commit is contained in:
@@ -71,12 +71,7 @@ class RebootVmJob implements ShouldQueue
|
||||
|
||||
// In VMJobs: $jobs = new WaitStatusVirtualMachine($product->vmware_id,$serviceVCenter,$product->customer_id,false);
|
||||
|
||||
dispatch(new WaitStatusVirtualMachine(
|
||||
$product->vmware_id,
|
||||
$vCenterService,
|
||||
$this->userId,
|
||||
false
|
||||
))->delay(now()->addSeconds(5));
|
||||
dispatch(new WaitStatusVirtualMachine($this->productId, false))->delay(now()->addSeconds(5));
|
||||
|
||||
} else {
|
||||
$msg = is_array($result) ? ($result['data'] ?? 'Unknown error') : $result;
|
||||
|
||||
Reference in New Issue
Block a user