Skip to content

Commit 6464156

Browse files
committed
Merge branch 'release/0.8.4'
2 parents 958392a + 2863f87 commit 6464156

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "taskiq"
3-
version = "0.8.3"
3+
version = "0.8.4"
44
description = "Distributed task queue with full async support"
55
authors = ["Pavel Kirilin <[email protected]>"]
66
maintainers = ["Pavel Kirilin <[email protected]>"]

taskiq/cli/worker/run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
import logging
33
import signal
44
from concurrent.futures import ThreadPoolExecutor
5+
from multiprocessing import set_start_method
56
from multiprocessing.synchronize import Event
7+
from sys import platform
68
from typing import Any, Type
79

810
from 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),

0 commit comments

Comments
 (0)