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

Preserve CurrentThreadExecutor across create_task #320

Merged
merged 1 commit into from Apr 19, 2022

Conversation

andersk
Copy link
Contributor

@andersk andersk commented Mar 18, 2022

Fixes #214.

Fixes django#214.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
@andersk
Copy link
Contributor Author

andersk commented Apr 18, 2022

@andrewgodwin Can I ask whether this approach makes sense for upstream? I understand if the actual merging and release might be slow for various reasons—but I want to make sure I won’t be stuck maintaining a permanent fork of asgiref for Zulip.

@andrewgodwin
Copy link
Member

Ah, sorry, this PR totally slipped out of my attention. It looks good!

@andrewgodwin andrewgodwin merged commit add5764 into django:main Apr 19, 2022
@andersk andersk deleted the current-executor branch April 19, 2022 08:37
@andrewgodwin
Copy link
Member

@andersk FYI, this is now out in 3.5.1 so you can hopefully undo any forking.

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

Successfully merging this pull request may close these issues.

sync_to_async does not find root thread inside a task
2 participants