Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion taskiq/cli/worker/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ def interrupt_handler(signum: int, _frame: Any) -> None:
loop = uvloop.new_event_loop() # type: ignore
else:
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)

asyncio.set_event_loop(loop)

# This option signals that current
# broker is running as a worker.
# We must set this field before importing tasks,
Expand Down