Skip to content

fix/Move the nest-asyncio apply into an init hook #107

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

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

awalker4
Copy link
Collaborator

@awalker4 awalker4 commented Jun 5, 2024

We're seeing an issue where the nest_asyncio.apply() workaround for nested loops is breaking when we're dealing with a uvloop. We need to investigate further, or remove the bandaid solution. In the meantime, we can unblock a simple import of the client in these environments by doing the apply only when the hook is run.

We're seeing an issue where the nest_asyncio.apply() workaround for nested loops is breaking when
we're dealing with a `uvloop`. We need to investigate further, or remove the bandaid solution. In
the meantime, we can unblock a simple import of the client in these environments by doing the apply
only when the hook is run.
@awalker4 awalker4 requested a review from vangheem June 5, 2024 22:06
@awalker4 awalker4 enabled auto-merge (squash) June 5, 2024 23:10
@awalker4 awalker4 merged commit 799e204 into main Jun 6, 2024
7 checks passed
@awalker4 awalker4 deleted the austin/nested-async branch June 6, 2024 15:10
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.

2 participants