File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " taskiq"
3- version = " 0.8.3 "
3+ version = " 0.8.4 "
44description = " Distributed task queue with full async support"
55authors = [
" Pavel Kirilin <[email protected] >" ]
66maintainers = [
" Pavel Kirilin <[email protected] >" ]
Original file line number Diff line number Diff line change 22import logging
33import signal
44from concurrent .futures import ThreadPoolExecutor
5+ from multiprocessing import set_start_method
56from multiprocessing .synchronize import Event
7+ from sys import platform
68from typing import Any , Type
79
810from taskiq .abc .broker import AsyncBroker
@@ -158,6 +160,8 @@ def run_worker(args: WorkerArgs) -> None: # noqa: WPS213
158160
159161 :raises ValueError: if reload flag is used, but dependencies are not installed.
160162 """
163+ if platform == "darwin" :
164+ set_start_method ("fork" )
161165 if args .configure_logging :
162166 logging .basicConfig (
163167 level = logging .getLevelName (args .log_level ),
You can’t perform that action at this time.
0 commit comments