forked from flux-framework/flux-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
job-exec: enable new sdexec options for imp-shell
Problem: an sdexec imp-shell unit can run into the following problem: - flux-shell is killed/terminates - there are unkillable children of flux-shell - the IMP won't exit until the cgroup is empty - the job appears to be running until the IMP exits with the shell exit code This deploys some new techniques to manage such processes and ensure that the job can complete and release resources and orphaned processes retain a systemd unit as a handle for monitoring and management. Specifically: - Set the KillMode=process so only the IMP is signaled - Use Type=notify in conjunction with IMP calling sd_notify(3) so the unit transitions to deactivating when the shell exits. - Set TimeoutStopUsec=infinity to disable systemd's stop timeout. - Enable sdexec's stop timeout which is armed at deactivating, delivers SIGUSR1 (proxy for SIGKILL) after 30s, then abandons the unit and terminates the exec RPC after another 30s. Behavior is configurable via the [exec] table. Fixes flux-framework#6656
- Loading branch information
Showing
3 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters