Skip to content

Commit

Permalink
shutdown: skip epilog on jobs canceled at shutdown
Browse files Browse the repository at this point in the history
Problem: the epilog can sometimes take a long time, which
delays shutdown when there are running jobs.

Unload the perilog jobtap plugin before canceling jobs in the
shutdown script.
  • Loading branch information
garlick committed Apr 8, 2024
1 parent 64860c8 commit 6c31028
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etc/shutdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ while getopts f namer; do
esac
done

# Avoid epilog on jobs canceled after this point
flux jobtap remove perilog 2>/dev/null

flux queue stop --quiet --all --nocheckpoint
flux cancel --user=all --quiet --states RUN

Expand Down

0 comments on commit 6c31028

Please sign in to comment.