-
Notifications
You must be signed in to change notification settings - Fork 79
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
ERROR: You cannot call this from an async context - use a thread or sync_to_async #797
Comments
Probably a duplicate of #597 We should fix this, it should not be that hard to fix! |
You can try |
@alexey-orekhov It is definitely not meant to work like that by design... |
closes pulp#797
closes pulp#797
closes pulp#797
closes pulp#797
Hi @quba42, In which version of |
@n-pochet We tried to release this as part of 2.21.1 and 2.20.3 yesterday, but the release pipeline is broken. This means we are blocked until pulp/plugin_template#770 is fixed. |
We are not currently planning to backport it to the 2.19 or 2.18 branch since there are merge conflicts and I am not certain it is needed there. Also, we are about to stop supporting those branches (there may be one final dot release for 2.18 and 2.19 each). |
Version
Describe the bug
When creating a remote with
sync_installer
set to True and creating a verbatim publication, the sync fail with the following error:ERROR: You cannot call this from an async context - use a thread or sync_to_async
Here is more information of the error:
To Reproduce
sync_installer
set to TrueThis is the link used for the remote: http://ftp.debian.org/debian/
Here is an example of on of my created remote:
Expected behavior
We expected the sync to work without issue, because of this issue the sync stop.
Additional context
In IRC discussing with quba42, the issue seems to be related with: is most likely in
pulp_deb/app/tasks/synchronizing.py
line 1078The text was updated successfully, but these errors were encountered: