fix: check queued deployments as well

This commit is contained in:
Andras Bacsai committed 2023-12-13 12:13:20 +01:00
1 parent 69343f974a
commit ff8d8371ad
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ class Init extends Command
// Cleanup any failed deployments
try {
$halted_deployments = ApplicationDeploymentQueue::where('status', '==', 'in_progress')->get();
$halted_deployments = ApplicationDeploymentQueue::where('status', '==', ApplicationDeploymentStatus::IN_PROGRESS)->where('status', '==', ApplicationDeploymentStatus::QUEUED)->get();
foreach ($halted_deployments as $deployment) {
$deployment->status = ApplicationDeploymentStatus::FAILED->value;
$deployment->save();