Skip to content

fix(runtime): Handle RuntimeError for event loop - #233

Merged
negz merged 1 commit into
crossplane:mainfrom
bobh66:fix_runtime_error
Sep 15, 2026
Merged

negz merged 1 commit into
crossplane:mainfrom
bobh66:fix_runtime_error

Conversation

@bobh66

@bobh66 bobh66 commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Description of your changes

Handle RuntimeError from asyncio.get_event_loop() and call asyncio.new_event_loop()

This change is to preserve the current functionality on pre-3.14 python but it can probably be changed to just
call asyncio.new_event_loop() when the minimum level is updated to 3.14.

Fixes #224

I have:

  • Read and followed Crossplane's contribution process.
    - [ ] Added or updated unit tests for my change.

@bobh66
bobh66 requested a review from negz as a code owner September 15, 2026 16:26
@bobh66
bobh66 requested a review from iciclespider September 15, 2026 16:31
@negz
negz merged commit 98f5db7 into crossplane:main Sep 15, 2026
6 checks passed
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.

serve() fails on Python 3.14: asyncio.get_event_loop() raises instead of creating a loop

2 participants