mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 14:15:58 +00:00
refactor(shared): simplify deployment status check logic
This commit is contained in:
1 parent
09636b413e
commit
2a08f4d653
1 file changed
+1
-2
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user