-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Calling get() on a synchronous chain result triggers E_WOULDBLOCK #6072
Comments
As a workaround I'm using |
did you check https://stackoverflow.com/questions/33280456/calling-async-result-get-from-within-a-celery-task/39975099 ? |
|
@auvipy I'm coming up against this when calling In particular, I'm doing something like this which throws the error:
It seems odd to get the warning I'm also wondering, wouldn't it make sense to remove the two WARNING boxes that seem only to apply to I'm adding this comment because I believe it's possible I'm completely mis-understanding how Celery is working, especially with respect to Thank you for maintaining Celery! |
if you can come with a PR, it would be easier for me to check and verify. can you do please? |
Checklist
master
branch of Celery.contribution guide
on reporting bugs.
for similar or identical bug reports.
for existing proposed fixes.
to find out if the bug was already fixed in the master branch.
in this issue (If there are none, check this box anyway).
Mandatory Debugging Information
celery -A proj report
in the issue.(if you are not able to do this, then at least specify the Celery
version affected).
master
branch of Celery.pip freeze
in the issue.to reproduce this bug.
Optional Debugging Information
and/or implementation.
result backend.
broker and/or result backend.
ETA/Countdown & rate limits disabled.
and/or upgrading Celery and its dependencies.
Related Issues and Possible Duplicates
Related Issues
disable_sync_subtasks
setting not being respected #5330Possible Duplicates
disable_sync_subtasks
setting not being respected #5330Environment & Settings
Celery version:
celery report
Output:Steps to Reproduce
Required Dependencies
Python Packages
pip freeze
Output:Other Dependencies
N/A
Minimally Reproducible Test Case
Expected Behavior
Both scheduled tasks should succeed.
Actual Behavior
The second task raises in the following error:
As a side note, I'm not entirely sure why is it necessary to pass
disable_sync_subtasks
toEagerResult.get()
. Since the code is executed in the same process there doesn't seem to be much potential for anything to block.The text was updated successfully, but these errors were encountered: