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

Add missing context kwarg to _sentry_task_factory #2267

Merged
merged 14 commits into from
Aug 28, 2023

Conversation

JohnnyDeuss
Copy link
Contributor

From Python 3.11, the task factory signature is (loop, coro, context=None) rather than (loop, coro). Forwarding the kwargs makes should make the task factory work with 3.11, as well as staying compatible with pre-3.11.

@JohnnyDeuss JohnnyDeuss changed the title Add missing context kwargs to _sentry_task_factory Add missing context kwarg to _sentry_task_factory Jul 21, 2023
@sentrivana
Copy link
Contributor

Thanks for the PR @JohnnyDeuss!

Just some links for now so that the PR doesn't get lost: this likely fixes #1993; #2015 addresses the same issue.

@szokeasaurusrex szokeasaurusrex enabled auto-merge (squash) August 28, 2023 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integration for asyncio has a invalid signature for loop create_task function -- _sentry_task_factory
4 participants