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 failures for multi-node runs #2008

Merged
merged 3 commits into from
Jul 28, 2022
Merged

Graceful exit on failures for multi-node runs #2008

merged 3 commits into from
Jul 28, 2022

Conversation

jerrymannil
Copy link
Contributor

  • Use Popen.terminate() to stop the child processes gracefully; Kill them if terminate doesn't work

  • The Popen.kill() command cause the training processes to end abruptly. This may cause the child processes to become zombies without communicating properly to the parent process about the kill signal. So the ssh session continue to wait for signals from the child processes, causing it to not return back to the pdsh command

Fixes #1995

@jerrymannil
Copy link
Contributor Author

@jeffra can you look at this ?

@jerrymannil
Copy link
Contributor Author

@jeffra @tjruwase Can one of you help with merging ?

* Use Popen.terminate() to stop the child processes gracefully; Kill them if terminate doesn't work

* The Popen.kill() command cause the training processes to end abruptly. This may cause the child processes to become zombies without communicating properly to the parent process about the kill signal. So the ssh session continue to wait for signals from the child processes, causing it to not return back to the pdsh command

Fixes #1995
@jerrymannil
Copy link
Contributor Author

@jeffra @tjruwase Can one of you help with merging ?

@tjruwase
Copy link
Contributor

@jerrymannil, taking a look. Apologies for the delay.

Copy link
Collaborator

@jeffra jeffra left a comment

Choose a reason for hiding this comment

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

Thank you @jerrymannil , so sorry for the delay.

@jeffra jeffra merged commit 66d29b0 into microsoft:master Jul 28, 2022
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.

[BUG] Not exiting gracefully on failures from training script for multi-node runs
3 participants