Skip to content

Conversation

@GrantDeljevic
Copy link

Below error occurred, the ignore_signals() handler in worker.py ran into an error caused by a recent uvicorn update when it tries to call asyncio.get_event_loop() where none exists.

Traceback (most recent call last):
  File "/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/python3.10/site-packages/mlserver/parallel/worker.py", line 70, in run
    self._ignore_signals()
  File "/python3.10/site-packages/mlserver/parallel/worker.py", line 81, in _ignore_signals
    loop = asyncio.get_event_loop()
  File "/python3.10/site-packages/uvloop/__init__.py", line 206, in get_event_loop
    raise RuntimeError(
RuntimeError: There is no current event loop in thread 'MainThread'.

Refactor signal handling to avoid redundant code.
@CLAassistant
Copy link

CLAassistant commented Oct 24, 2025

CLA assistant check
All committers have signed the CLA.

@GrantDeljevic
Copy link
Author

PR was created twice, closing for duplicate

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