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

Fix the issue where the task was being scheduled in stopped loop #2115

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joaovbsevero
Copy link

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Properly call httpx AsyncClient aclose method.

Additional context & links

As of now, there is an issue when using AsyncOpenAI in AWS Lambdas because the event loop is closed and after that the aclose() coroutine is scheduled.
By checking if the loop is running before actually scheduling the coroutine, the issue is resolved.

@joaovbsevero joaovbsevero requested a review from a team as a code owner February 12, 2025 17:33
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