Skip to content

Commit 69adb5e

Browse files
committed
shutdown: skip epilog on jobs canceled at shutdown
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.
1 parent b588049 commit 69adb5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

etc/shutdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ while getopts f namer; do
77
esac
88
done
99

10+
# Avoid epilog on jobs canceled after this point
11+
flux jobtap remove perilog 2>/dev/null
12+
1013
flux queue stop --quiet --all --nocheckpoint
1114
flux cancel --user=all --quiet --states RUN
1215

0 commit comments

Comments
 (0)