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

Prevent changing job HOLD reason set by select plugin

Under some conditions the select/cons_res plugin will hold a job,
  setting it's priority to zero and reason to HELD. The logic in
  slurmctld's main scheduling loop previously kept its priority
  at zero, but changed the reason from HELD to RESOURCES. This
  change leaves the proper job state as set by the select plugin.
This may be related to bug 1750
parent 54b258ec
No related branches found
No related tags found
No related merge requests found
...@@ -1794,6 +1794,9 @@ extern int select_nodes(struct job_record *job_ptr, bool test_only, ...@@ -1794,6 +1794,9 @@ extern int select_nodes(struct job_record *job_ptr, bool test_only,
} else if ((job_ptr->state_reason == WAIT_BLOCK_MAX_ERR) || } else if ((job_ptr->state_reason == WAIT_BLOCK_MAX_ERR) ||
(job_ptr->state_reason == WAIT_BLOCK_D_ACTION)) { (job_ptr->state_reason == WAIT_BLOCK_D_ACTION)) {
/* state_reason was already setup */ /* state_reason was already setup */
} else if ((job_ptr->state_reason == WAIT_HELD) &&
(job_ptr->priority == 0)) {
/* Held by select plugin due to some failure */
} else { } else {
job_ptr->state_reason = WAIT_RESOURCES; job_ptr->state_reason = WAIT_RESOURCES;
xfree(job_ptr->state_desc); xfree(job_ptr->state_desc);
......
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