-
Notifications
You must be signed in to change notification settings - Fork 533
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
Faust hangs forever when exiting via ctrl-c or exception #484
Comments
Using faust within Docker? If so, try with https://github.com/Yelp/dumb-init basically change your entrypoint to use dumb-init: |
This occurs even on the command-line, no docker, just with ctrl-c. |
I see the same issue |
I have the same issue |
Having the same issue. |
I have the same issue |
Incompatible AVRO schema hangs the app. Ctrl-C kills the app eventually after a few minutes. @ask can you please check it out?.. this is very annoying issue... it slows down development significantly when app if freezing like this. and it's dangerous for production for obvious reasons :)
|
Same issue |
Checklist
master
branch of Faust.Steps to reproduce
Ctrl-C on a running worker. Alternately, raise an exception in a running worker. This happens with the provided examples, eg:
faust -A examples.hello_world worker -l debug
This could be (likely is, given the monkeypatch below) a bug in mode itself, but I don't have a simple case to reproduce it there.
Expected behavior
Faust exits properly on the first ctrl-c or unhandled exception.
Actual behavior
Faust hangs after saying
[CRITICAL] [^Worker]: We experienced a crash! Reraising original exception...
Full traceback
Versions
Workaround
The following monkeypatch has exit happen successfully. Add it above
import faust
in the hello_world example. It does break re-raising the original exception at exit, but I can live with that compared to the dead service staying up.The text was updated successfully, but these errors were encountered: