Skip to content

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

Merged
awalker4 merged 1 commit intomainfrom
austin/nested-async
Jun 6, 2024
Merged

fix/Move the nest-asyncio apply into an init hook#107
awalker4 merged 1 commit intomainfrom
austin/nested-async

Conversation

@awalker4
Copy link
Copy Markdown
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
@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