Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/slurmctld/job_scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,16 @@ static int _foreach_build_job_queue(void *x, void *arg)
(void) _build_job_queue_for_part(job_ptr->part_ptr, setup_job);
}

/*
* _build_job_queue_for_qos() leaves job_ptr->qos_ptr at the last qos_list
* member it tested. The job_queue entries already captured their own
* qos_ptr, so reset the live pointer to the highest-priority member (the
* pending default) instead of leaving accounting (acct_policy and the
* priority decay both key on job_ptr->qos_ptr) on a stale QOS member.
*/
if (job_ptr->qos_list)
job_ptr->qos_ptr = list_peek(job_ptr->qos_list);

return 0;
}

Expand Down