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

Clear node reason if it goes from state UNKNOWN after registration (after

slurmctld restart).
parent 2e43505d
No related branches found
No related tags found
No related merge requests found
......@@ -1168,6 +1168,7 @@ validate_node_specs (char *node_name, uint32_t cpus,
node_ptr->node_state = NODE_STATE_ALLOCATED;
else
node_ptr->node_state = NODE_STATE_IDLE;
xfree(node_ptr->reason);
} else if (node_ptr->node_state == NODE_STATE_DRAINING) {
if (job_count == 0) {
last_node_update = time (NULL);
......
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