refactor(shared): simplify deployment status check logic
This commit is contained in:
parent
09636b413e
commit
2a08f4d653
1 changed files with 1 additions and 2 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue