From 31c0919369964c341162e95f9067d864b3fda44a Mon Sep 17 00:00:00 2001 From: Morris Jette <jette@schedmd.com> Date: Fri, 3 Mar 2017 13:59:28 -0700 Subject: [PATCH] Decrease agent timedwait from 5 to 2 seconds This will support more timely shutdown of slurmctld --- src/slurmctld/agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slurmctld/agent.c b/src/slurmctld/agent.c index c7f1d487688..ba9b8b7ff56 100644 --- a/src/slurmctld/agent.c +++ b/src/slurmctld/agent.c @@ -1279,7 +1279,7 @@ static void *_agent_init(void *arg) while (!slurmctld_config.shutdown_time && !pending_mail && (pending_wait_time == (uint16_t) NO_VAL)) { - ts.tv_sec = time(NULL) + 5; + ts.tv_sec = time(NULL) + 2; pthread_cond_timedwait(&pending_cond, &pending_mutex, &ts); -- GitLab