Skip to content
Snippets Groups Projects
Commit 3d8a2e7e authored by Moe Jette's avatar Moe Jette
Browse files

If a slurmd registers without any jobs, change the node's state from

ALLOCATED to IDLE
parent f395378b
No related branches found
No related tags found
No related merge requests found
...@@ -1113,6 +1113,9 @@ validate_node_specs (char *node_name, uint32_t cpus, ...@@ -1113,6 +1113,9 @@ validate_node_specs (char *node_name, uint32_t cpus,
info ("validate_node_specs: node %s returned to service", info ("validate_node_specs: node %s returned to service",
node_name); node_name);
resp_state = 1; /* just started responding */ resp_state = 1; /* just started responding */
} else if ((node_ptr->node_state == NODE_STATE_ALLOCATED) &&
(job_count == 0)) {
node_ptr->node_state = NODE_STATE_IDLE; /* job vanished */
} }
if (node_ptr->node_state == NODE_STATE_IDLE) { if (node_ptr->node_state == NODE_STATE_IDLE) {
......
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