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

Graceful exit on SIGTERM #201

Closed
vasdommes opened this issue Feb 26, 2024 · 0 comments
Closed

Graceful exit on SIGTERM #201

vasdommes opened this issue Feb 26, 2024 · 0 comments
Assignees
Milestone

Comments

@vasdommes
Copy link
Collaborator

When SDPB process receives SIGTERM signal, it should exit gracefully.
Possible behaviour:

  • Finish current solver iteration
  • Write a checkpoint
  • Set terminate reason "SIGTERM signal received"
  • Exit with SIGTERM exit code (=15)

SIGTERM is used e.g. by SLURM to notify a job of its termintation:

Once a job has been selected for preemption, its end time is set to the current time plus GraceTime. The job is immediately sent SIGCONT and SIGTERM signals in order to provide notification of its imminent termination. This is followed by the SIGCONT, SIGTERM and SIGKILL signal sequence upon reaching its new end time.

https://slurm.schedmd.com/preempt.html

@vasdommes vasdommes added this to the Backlog milestone Feb 26, 2024
@vasdommes vasdommes self-assigned this Feb 26, 2024
@vasdommes vasdommes modified the milestones: Backlog, 2.8.0 Mar 7, 2024
vasdommes added a commit that referenced this issue Mar 7, 2024
Fix #201 Graceful exit on SIGTERM + cosmetic fixes
vasdommes added a commit that referenced this issue Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant