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

Fix how we handle control-c in stress #4723

Merged
merged 1 commit into from
Sep 23, 2022
Merged

Conversation

sadhansood
Copy link
Contributor

The current approach of handling contorl-c signal is incorrect as it does it inside one worker. This basically means to terminate the program with control-c, we need to press it any many times as there are workers to make it work. Instead we need a way to cancel all tasks on the first signal. This PR fixes the erroneous behavior

@sadhansood sadhansood marked this pull request as ready for review September 19, 2022 22:40
Copy link
Contributor

@huitseeker huitseeker left a comment

Choose a reason for hiding this comment

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

This makes sense, thanks @sadhansood !

@sadhansood sadhansood enabled auto-merge (squash) September 23, 2022 16:48
@sadhansood sadhansood merged commit e5beaa6 into main Sep 23, 2022
@sadhansood sadhansood deleted the sadhan/fix_control_c branch September 23, 2022 17:14
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.

2 participants