Skip to content

Commit 77cf439

Browse files
committed
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.
1 parent 3464b31 commit 77cf439

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

etc/rc1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ fi
113113
if test $RANK -eq 0; then
114114
if test -z "${FLUX_DISABLE_JOB_CLEANUP}"; then
115115
flux admin cleanup-push <<-EOT
116+
flux jobtap remove perilog 2>/dev/null || true
116117
flux queue stop --quiet --all --nocheckpoint
117118
flux cancel --user=all --quiet --states RUN
118119
flux queue idle --quiet

0 commit comments

Comments
 (0)