refactor(shared): enhance job status check to include 'reserved'

This commit is contained in:
Andras Bacsai committed 2025-03-28 15:42:25 +01:00
1 parent 735fcaad33
commit f060b7d3d2
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}
}