refactor(shared): simplify deployment status check logic
This commit is contained in:
@@ -1254,10 +1254,9 @@ function isAnyDeploymentInprogress()
|
||||
foreach ($runningJobs as $runningJob) {
|
||||
$horizonJobStatus = getJobStatus($runningJob->horizon_job_id);
|
||||
if ($horizonJobStatus === 'unknown') {
|
||||
return true;
|
||||
}
|
||||
$horizonJobIds[] = $runningJob->horizon_job_id;
|
||||
}
|
||||
}
|
||||
if (count($horizonJobIds) === 0) {
|
||||
echo "No deployments in progress.\n";
|
||||
exit(0);
|
||||
|
Reference in New Issue
Block a user