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): enhance job status check to include 'reserved'

Andras Bacsaif060b7d3d299
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index 45982a3f66..7dc6365874 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -1264,7 +1264,7 @@ function isAnyDeploymentInprogress()
$horizonJobIds = [];
foreach ($runningJobs as $runningJob) {
$horizonJobStatus = getJobStatus($runningJob->horizon_job_id);
- if ($horizonJobStatus === 'unknown') {
+ if ($horizonJobStatus === 'unknown' || $horizonJobStatus === 'reserved') {
$horizonJobIds[] = $runningJob->horizon_job_id;
}
}