Skip to content

Conversation

@mayagbarnes
Copy link
Collaborator

Describe your changes

asyncio.get_running_loop() throws a RuntimeError: There is no current event loop in thread 'MainThread' when this is no current event loop.

Resolves issue introduced in #10164.

GitHub Issue Link (if applicable)

Closes #10452

Testing Plan

  • Unit Tests (JS and/or Python): Added ✅
  • Manual Testing: ✅

@mayagbarnes mayagbarnes added security-assessment-completed Security assessment has been completed for PR change:bugfix PR contains bug fix implementation impact:users PR changes affect end users labels Feb 20, 2025
@mayagbarnes mayagbarnes marked this pull request as ready for review February 20, 2025 01:55
Copy link
Collaborator

@raethlein raethlein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mayagbarnes mayagbarnes merged commit 68f9db9 into develop Feb 20, 2025
44 checks passed
@mayagbarnes mayagbarnes deleted the event-loop-fix branch February 20, 2025 17:43
sfc-gh-mbarnes pushed a commit that referenced this pull request Feb 20, 2025
`asyncio.get_running_loop()` throws a `RuntimeError: There is no current event loop in thread 'MainThread'` when this is no current event loop.
Resolves issue introduced in PR #10164. Closes #10452
sfc-gh-mbarnes pushed a commit that referenced this pull request Feb 20, 2025
`asyncio.get_running_loop()` throws a `RuntimeError: There is no current event loop in thread 'MainThread'` when this is no current event loop.
Resolves issue introduced in PR #10164. Closes #10452
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:bugfix PR contains bug fix implementation impact:users PR changes affect end users security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v1.42.0 introduces call to asyncio.get_event_loop().is_running() which sometimes throws RuntimeError

3 participants