Skip to content

Commit

Permalink
shutdown: unload perilog plugin during shutdown
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
garlick committed Apr 9, 2024
1 parent 3464b31 commit 77cf439
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions etc/rc1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77cf439

Please sign in to comment.