From 77cf439a685bca7010fbf4bac13cade3a79a5ece Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Tue, 9 Apr 2024 07:58:10 -0700 Subject: [PATCH] shutdown: unload perilog plugin during shutdown Problem: when flux is shutting down and canceling running jobs, the epilog can greatly extend the shutdown time. Unload the perilog plugin as part of the cleanup tasks so that canceled jobs can complete quickly in the shutdown case. --- etc/rc1 | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/rc1 b/etc/rc1 index cddac74c2d02..bafcf049c2ad 100755 --- a/etc/rc1 +++ b/etc/rc1 @@ -113,6 +113,7 @@ fi if test $RANK -eq 0; then if test -z "${FLUX_DISABLE_JOB_CLEANUP}"; then flux admin cleanup-push <<-EOT + flux jobtap remove perilog 2>/dev/null || true flux queue stop --quiet --all --nocheckpoint flux cancel --user=all --quiet --states RUN flux queue idle --quiet