Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP, demo only] command to terminate jobs before killing them #75

Closed
wants to merge 1 commit into from

Conversation

rkdarst
Copy link
Contributor

@rkdarst rkdarst commented Apr 28, 2018

This is a proof of concept of adding a new command batch_term_cmd which will send SIGTERM to jobs before batch_cancel_command sends SIGKILL. However, most of the batch systems implement something like this natively, so hopefully this does not need to be implemented most of the time. There is a demo for slurm, that isn't needed and should be rebased out before this is used.

If it was needed, it would solve #50 in a generalized manner.

The support might be useful for other spawners, so I am showing the code, but shouldn't be merged until it has a purpose. Also it must be updated for at least #72 and #73.

  • Add ability to sent SIGTER before the cancel command is called.
    This might give the notebook server a chance to clean up first.
  • Implemented for slurm only as a demo, but it is not actually needed
    for slurm.
  • Do not merge, example only!

@rkdarst rkdarst force-pushed the interrupt_before_cancel branch 2 times, most recently from 3706c99 to 9cc5c22 Compare June 18, 2018 21:16
- Add ability to sent SIGTER before the cancel command is called.
  This might give the notebook server a chance to clean up first.
- Implemented for slurm only as a demo, but it is not actually needed
  for slurm.
- Do not merge, example only!
@rkdarst rkdarst marked this pull request as draft July 23, 2020 12:18
This was referenced Jul 23, 2020
@yuvipanda
Copy link
Contributor

Given this is 6y old, I'm going to close this to clean things out. Hope that's ok @rkdarst! Please re-open if you disagree.

@yuvipanda yuvipanda closed this Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants