refactor(shared): enhance job status check to include 'reserved'
This commit is contained in:
@@ -1264,7 +1264,7 @@ function isAnyDeploymentInprogress()
|
|||||||
$horizonJobIds = [];
|
$horizonJobIds = [];
|
||||||
foreach ($runningJobs as $runningJob) {
|
foreach ($runningJobs as $runningJob) {
|
||||||
$horizonJobStatus = getJobStatus($runningJob->horizon_job_id);
|
$horizonJobStatus = getJobStatus($runningJob->horizon_job_id);
|
||||||
if ($horizonJobStatus === 'unknown') {
|
if ($horizonJobStatus === 'unknown' || $horizonJobStatus === 'reserved') {
|
||||||
$horizonJobIds[] = $runningJob->horizon_job_id;
|
$horizonJobIds[] = $runningJob->horizon_job_id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user