-
Notifications
You must be signed in to change notification settings - Fork 541
Event reporting within child process does not work without time.sleep #473
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
Comments
time.sleep
time.sleep
Your best fix is to add For the main process this is done automatically via |
@untitaker Thank you for your quick response! (probably the fastest I received in github) |
See this question: https://stackoverflow.com/a/34507557/1544347 It's very unfortunate behavior. We even work around this in the Celery integration, but the fix is Celery-specific (and has to be). Theoretically you could monkeypatch |
Without giving sleep, the event reporting is not correctly triggered. Why is this? Is it because the worker thread is a daemon thread? (but I have tried to comment
self._thread.setDaemon(True)
out, but it still shows the same symptom)The text was updated successfully, but these errors were encountered: