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

This commit is contained in:
Andras Bacsai
2025-03-28 15:42:25 +01:00
parent 735fcaad33
commit f060b7d3d2

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;
}
}