refactor(shared): simplify deployment status check logic

This commit is contained in:
Andras Bacsai
2025-03-28 15:09:38 +01:00
parent 09636b413e
commit 2a08f4d653

View File

@@ -1254,9 +1254,8 @@ function isAnyDeploymentInprogress()
foreach ($runningJobs as $runningJob) {
$horizonJobStatus = getJobStatus($runningJob->horizon_job_id);
if ($horizonJobStatus === 'unknown') {
return true;
$horizonJobIds[] = $runningJob->horizon_job_id;
}
$horizonJobIds[] = $runningJob->horizon_job_id;
}
if (count($horizonJobIds) === 0) {
echo "No deployments in progress.\n";