File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2
2
from .context import message_context
3
3
from .models import MessageContext
4
4
from .state import State
5
+ from .multiprocessing import multiprocessing
5
6
6
7
7
8
__version__ = "2.9.0"
Original file line number Diff line number Diff line change
1
+ from multiprocessing import get_context
2
+
3
+ # always use spawn as it's supported on all major OS
4
+ # see https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods
5
+ multiprocessing = get_context ("spawn" )
Original file line number Diff line number Diff line change 2
2
import logging
3
3
import signal
4
4
5
- from multiprocessing import get_context
6
5
from pickle import PicklingError
7
6
from typing import List
8
7
8
+ from quixstreams .multiprocessing import multiprocessing
9
9
from quixstreams .logging import configure_logging , LOGGER_NAME
10
10
from quixstreams .models import Topic
11
11
from .base import BaseSource
12
12
13
13
logger = logging .getLogger (__name__ )
14
14
15
- # always use spawn as it's supported on all major OS
16
- # see https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods
17
- multiprocessing = get_context ("spawn" )
18
-
19
15
20
16
class SourceProcess (multiprocessing .Process ):
21
17
"""
You can’t perform that action at this time.
0 commit comments