Skip to content

Move the SIGTERM trap into the common library - #53

Merged
zaihuaji merged 1 commit into
mainfrom
hua-work-dsquasar
Oct 2, 2026
Merged

zaihuaji merged 1 commit into
mainfrom
hua-work-dsquasar

Conversation

@zaihuaji

@zaihuaji zaihuaji commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • catch_batch_termination/batch_term_handler replaced by catch_term_signal(self.batch_term_report), using the new generic handler in rda-python-common 3.0.23
  • batch_term_report() is now just the report body: no signal calls, no re-raise, no PPID guard (the fork sites reset SIGTERM instead)
  • bump version to 3.0.21

Test plan

  • python3 -m py_compile on dsquasar.py
  • standalone check of the common handler: batch run arms, callback runs, process exits 143
  • requires rda_python_common >= 3.0.23 at runtime

…t here; bump version to 3.0.21

the hole it closes is not dsquasar's alone - any program running under a
dscheck walltime dies the same silent death - so the arming, the handler and
the child reset now live in pg_sig.py, and dsquasar supplies just the progress
report it wants parked before PBS kills the job.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@zaihuaji
zaihuaji merged commit d1ed88b into main Oct 2, 2026
1 of 2 checks passed
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.

1 participant