Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

refactor(shared): simplify deployment status check logic

Andras Bacsai2a08f4d653ca
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index 60e71cd9c0..ff8ac4c8a6 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -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";