Skip to content
Snippets Groups Projects
Commit 38e8a06b authored by Danny Auble's avatar Danny Auble
Browse files

Remove pointless check. The state_reason is set to WAIT_NO_REASON

so acct_policy_job_runnable will always return true.
parent 848f5545
No related branches found
No related tags found
No related merge requests found
......@@ -556,10 +556,8 @@ extern int schedule(uint32_t job_limit)
if ((job_ptr->state_reason == WAIT_QOS_JOB_LIMIT) ||
(job_ptr->state_reason == WAIT_QOS_RESOURCE_LIMIT) ||
(job_ptr->state_reason == WAIT_QOS_TIME_LIMIT)) {
(job_ptr->state_reason == WAIT_QOS_TIME_LIMIT))
job_ptr->state_reason = WAIT_NO_REASON;
acct_policy_job_runnable(job_ptr);
}
if ((job_ptr->state_reason == WAIT_NODE_NOT_AVAIL) &&
job_ptr->details && job_ptr->details->req_node_bitmap &&
......
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