Skip to content

Commit d8237b8

Browse files
authored
Set uvloop for current thread explicitly. (#270)
1 parent 7030a54 commit d8237b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

taskiq/cli/worker/run.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ def interrupt_handler(signum: int, _frame: Any) -> None:
117117
loop = uvloop.new_event_loop() # type: ignore
118118
else:
119119
loop = asyncio.new_event_loop()
120-
asyncio.set_event_loop(loop)
120+
121+
asyncio.set_event_loop(loop)
122+
121123
# This option signals that current
122124
# broker is running as a worker.
123125
# We must set this field before importing tasks,

0 commit comments

Comments
 (0)