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