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 1
1
[tool .poetry ]
2
2
name = " taskiq"
3
- version = " 0.8.3 "
3
+ version = " 0.8.4 "
4
4
description = " Distributed task queue with full async support"
5
5
authors = [
" Pavel Kirilin <[email protected] >" ]
6
6
maintainers = [
" Pavel Kirilin <[email protected] >" ]
Original file line number Diff line number Diff line change 2
2
import logging
3
3
import signal
4
4
from concurrent .futures import ThreadPoolExecutor
5
+ from multiprocessing import set_start_method
5
6
from multiprocessing .synchronize import Event
7
+ from sys import platform
6
8
from typing import Any , Type
7
9
8
10
from taskiq .abc .broker import AsyncBroker
@@ -158,6 +160,8 @@ def run_worker(args: WorkerArgs) -> None: # noqa: WPS213
158
160
159
161
:raises ValueError: if reload flag is used, but dependencies are not installed.
160
162
"""
163
+ if platform == "darwin" :
164
+ set_start_method ("fork" )
161
165
if args .configure_logging :
162
166
logging .basicConfig (
163
167
level = logging .getLevelName (args .log_level ),
You can’t perform that action at this time.
0 commit comments