Skip to content

Commit 0f4e73f

Browse files
Disable shared memory by default
Shared memory is disabled by default, but can still be enabled by passing 'shared_memory=True' in the constructor for Scheduler.
1 parent eb50f4b commit 0f4e73f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scheduler/Scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(
5353
dynamic: bool = True,
5454
cpu_threshold: float = 95,
5555
cpu_update_interval: float = 5,
56-
shared_memory: bool = True,
56+
shared_memory: bool = False,
5757
shared_memory_threshold:int = 1e7,
5858
):
5959
"""

test/test_scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
def test_shared_memory_numpy():
6060
"""Tests whether `run_blocking()` works correctly."""
61-
scheduler = Scheduler()
61+
scheduler = Scheduler(shared_memory=True, shared_memory_threshold=0)
6262

6363
args, expected = _get_input_output_numpy()
6464
for a in args:

0 commit comments

Comments
 (0)