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

safer srun termination #3270

Merged
merged 6 commits into from
Dec 4, 2024
Merged

safer srun termination #3270

merged 6 commits into from
Dec 4, 2024

Conversation

andre-merzky
Copy link
Member

This fixes #3267

@mtitov
Copy link
Contributor

mtitov commented Dec 3, 2024

@andre-merzky quick check - should we add some handling of the termination signal within the launching script? do we need to preserve launch_collect tracing event? or such tasks will finish with task_run_cancel_stop only?

@andre-merzky
Copy link
Member Author

@andre-merzky quick check - should we add some handling of the termination signal within the launching script? do we need to preserve launch_collect tracing event? or such tasks will finish with task_run_cancel_stop only?

A launch script handler would, IMHO, only make sense if we want to still execute post_launch commands - which I don't think should happen. We can't do much about the exec script anyway, and that's where the interesting parts are. So indeed, I would expect task_run_cancel_stop to be the next event in this case.

@mtitov
Copy link
Contributor

mtitov commented Dec 3, 2024

Thanks Andre!

Copy link
Contributor

@mtitov mtitov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@andre-merzky
Copy link
Member Author

Oh, I need to fix the tests... Will do ASAP.

@andre-merzky andre-merzky merged commit 0fcc590 into devel Dec 4, 2024
31 checks passed
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 42.84%. Comparing base (ec79ef6) to head (d549958).
Report is 7 commits behind head on devel.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3270      +/-   ##
==========================================
+ Coverage   42.80%   42.84%   +0.04%     
==========================================
  Files          97       97              
  Lines       11254    11262       +8     
==========================================
+ Hits         4817     4825       +8     
  Misses       6437     6437              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andre-merzky andre-merzky deleted the fix/srun_termination branch December 4, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When SRUN killed, some of its ranks keep running (Frontier)
2 participants