Implement VM provision locking mechanism and enhance VM job handling
This commit is contained in:
@@ -81,12 +81,7 @@ class StartVmJob implements ShouldQueue
|
||||
// For Start:
|
||||
// $jobs = new WaitStatusVirtualMachine($product->vmware_id, $serviceVCenter, $product->customer_id, false);
|
||||
|
||||
dispatch(new WaitStatusVirtualMachine(
|
||||
$product->vmware_id,
|
||||
$vCenterService,
|
||||
$this->userId,
|
||||
false // Expect operations_ready = false initially? Logic in WaitStatus is weird.
|
||||
))->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