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

Try to process pending agent requests before shutdown.

parent eca2474d
No related branches found
No related tags found
No related merge requests found
......@@ -706,7 +706,7 @@ static void *_slurmctld_background(void *no_data)
static time_t last_timelimit_time;
static time_t last_assert_primary_time;
time_t now;
int ping_interval;
int i, ping_interval;
DEF_TIMERS;
/* Locks: Read config */
......@@ -842,6 +842,14 @@ static void *_slurmctld_background(void *no_data)
if (DELTA_TIMER > 1000000) /* more than one second */
info("_slurmctld_background loop %s", TIME_STR);
}
for (i=0; i<20; i++) {
if (agent_retry(0) == 0)
break;
usleep(1000);
}
if (agent_retry(0))
error("terminating with %d pending message agent requests", cnt);
debug3("_slurmctld_background shutting down");
return 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