Skip to content
Snippets Groups Projects
Commit 54b258ec authored by Morris Jette's avatar Morris Jette
Browse files

Prevent backfill scheduler overriding job hold

The backfill scheduler will periodically release locks for other
  actions. If a job is held during the time that locks were released,
  that job might still have been scheduled by the backfill scheduler
  (i.e. it failed to check for a job with a priority of zero).
could be a root cause for bug 1750
parent 43d0ad6f
No related branches found
No related tags found
No related merge requests found
......@@ -904,8 +904,9 @@ next_task:
slurmctld_diag_stats.bf_last_depth++;
already_counted = false;
if (!IS_JOB_PENDING(job_ptr))
continue; /* started in another partition */
if (!IS_JOB_PENDING(job_ptr) || /* Started in other part*/
(job_ptr->priority == 0)) /* Job has been held */
continue;
if (job_ptr->preempt_in_progress)
continue; /* scheduled in another partition */
if (!avail_front_end(job_ptr))
......@@ -1098,7 +1099,8 @@ next_task:
if ((job_ptr->magic != JOB_MAGIC) ||
(job_ptr->job_id != save_job_id))
continue;
if (!IS_JOB_PENDING(job_ptr))
if (!IS_JOB_PENDING(job_ptr) || /* Already started */
(job_ptr->priority == 0)) /* Job has been held */
continue;
if (!avail_front_end(job_ptr))
continue; /* No available frontend */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment