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

Interrupt signal doesn't work #567

Open
g4s8 opened this issue Jul 24, 2020 · 3 comments
Open

Interrupt signal doesn't work #567

g4s8 opened this issue Jul 24, 2020 · 3 comments

Comments

@g4s8
Copy link

g4s8 commented Jul 24, 2020

When I send interrupt signal with Ctrl+C CLI shows a lot of errors with stacktraces but doesn't stop.

@lyriccoder
Copy link
Member

Seems it doesn't work since we have multiprocess inside python.
We need to investigate it, how to stop all child processes

@lyriccoder
Copy link
Member

There is a bug in python: https://bugs.python.org/issue8296

@lyriccoder
Copy link
Member

It seems there are two issues that make exceptions while multiprocessing annoying. The first is that you need to use map_async with a timeout instead of map in order to get an immediate response (i.e., don't finish processing the entire list). The second is that multiprocessing doesn't catch exceptions that don't inherit from Exception (e.g., SystemExit).

https://stackoverflow.com/a/23682499

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

No branches or pull requests

2 participants