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

Another fix for for handling power state resume on restart of

slurmctld.
parent 32ad081a
No related branches found
No related tags found
No related merge requests found
...@@ -262,7 +262,12 @@ void ping_nodes (void) ...@@ -262,7 +262,12 @@ void ping_nodes (void)
continue; continue;
} }
if (restart_flag) /* If we are resuming nodes from power save we need to
keep the larger last_response so we don't
accidentally mark them as "unexpectedly rebooted".
*/
if (restart_flag
&& (node_ptr->last_response < slurmctld_conf.last_update))
node_ptr->last_response = slurmctld_conf.last_update; node_ptr->last_response = slurmctld_conf.last_update;
/* Request a node registration if its state is UNKNOWN or /* Request a node registration if its state is UNKNOWN or
......
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