Adding SIGTERM handling for graceful MD exit - #3465
Conversation
Allow MD runs to stop cooperatively after a completed step and emit explicit partial-run metadata.
|
Can one of the admins verify this patch? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3465 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 101 101
Lines 4375 4399 +24
=========================================
+ Hits 4375 4399 +24 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@Andrew-S-Rosen What I’ve been trying to do here is catch a SIGTERM signal from the scheduler so that the MD run can be terminated safely. However, it seems that if the signal is sent while a single The other option would be to get the walltime from the batch submission file, but it looks like accessing that information through |
Summary of Changes
Following up on #3456. Added SIGTERM handling to guarantee a graceful MD exit before the walltime limit, providing a fallback when
max_runtimeis not declared.Requirements
main).Note: If you are an external contributor, you will see a comment from @buildbot-princeton. This is solely for the maintainers.