Skip to content

Conversation

@SunMarc
Copy link
Member

@SunMarc SunMarc commented Jan 6, 2026

What does this PR do?

This PR switches to use asyncio.run instead of asyncio.get_event_loop() + result = loop.run_until_complete(). This is better as starting from python3.14, get_event_loop returns a RuntimeError if there is no loop. Before, it was creating a loop if it didn't exist.

Fixes #3899

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@SunMarc SunMarc merged commit a89f201 into main Jan 9, 2026
24 of 29 checks passed
@SunMarc SunMarc deleted the fix-async branch January 9, 2026 15:49
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.

Test failures under Python 3.14 on x86_64-linux

3 participants