failure handling on steps, setting service status

This commit is contained in:
2025-03-31 16:45:36 +00:00
parent 967a87a024
commit 9854b42f47
3 changed files with 21 additions and 0 deletions

View File

@@ -26,6 +26,9 @@ class DeployService implements ShouldQueue
public function handle(): void
{
$driver = $this->service->driver($this->defaultPassword);
$this->service->update([
'status' => ServiceStatus::INSTALLING
]);
$this->deployment = $this->service->deployments()->create([
'status' => DeploymentStatus::PENDING,
]);