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

Corrct sus_job_cnt and job_cnt_run values

Correct values mainted for suspended job count (sus_job_cnt) by node and
run job count (job_cnt_run) by front-end node when reconfiguring the slurmctld
daemon while there are suspended jobs on a front-end architecture.
parent 26b5c8b3
No related branches found
No related tags found
No related merge requests found
......@@ -996,6 +996,8 @@ static int _restore_node_state(int recover,
node_ptr->tmp_disk = old_node_ptr->tmp_disk;
node_ptr->weight = old_node_ptr->weight;
node_ptr->sus_job_cnt = old_node_ptr->sus_job_cnt;
if (node_ptr->gres_list)
list_destroy(node_ptr->gres_list);
node_ptr->gres_list = old_node_ptr->gres_list;
......@@ -1507,6 +1509,10 @@ static int _sync_nodes_to_active_job(struct job_record *job_ptr)
node_flags;
}
}
if (IS_JOB_RUNNING(job_ptr) && job_ptr->front_end_ptr)
job_ptr->front_end_ptr->job_cnt_run++;
return cnt;
}
......
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