From 037ba3ff7907bbb9e35b7ce5a2c89e7dec21c791 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 8 Feb 2024 12:37:56 +0100 Subject: [PATCH] Fix cleanup of halted deployments --- app/Console/Commands/Init.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php index 0389ad070..5fc75d859 100644 --- a/app/Console/Commands/Init.php +++ b/app/Console/Commands/Init.php @@ -124,6 +124,7 @@ class Init extends Command try { $halted_deployments = ApplicationDeploymentQueue::where('status', '==', ApplicationDeploymentStatus::IN_PROGRESS)->where('status', '==', ApplicationDeploymentStatus::QUEUED)->get(); foreach ($halted_deployments as $deployment) { + echo "Cleaning up deployment: {$deployment->id}\n"; $deployment->status = ApplicationDeploymentStatus::FAILED->value; $deployment->save(); }