Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions distributed/deploy/tests/test_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ async def test_keywords():
"memory_limit": "2 GiB",
"death_timeout": "5s",
},
scheduler_options={"idle_timeout": "5s", "port": 0},
scheduler_options={"idle_timeout": "10s", "port": 0},
) as cluster:
async with Client(cluster, asynchronous=True) as client:
assert (
await client.run_on_scheduler(
lambda dask_scheduler: dask_scheduler.idle_timeout
)
) == 5
) == 10
d = client.scheduler_info()["workers"]
assert all(v["nthreads"] == 2 for v in d.values())

Expand Down
2 changes: 1 addition & 1 deletion distributed/distributed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ distributed:

worker:
blocked-handlers: []
multiprocessing-method: forkserver
multiprocessing-method: spawn
use-file-locking: True
connections: # Maximum concurrent connections for data
outgoing: 50 # This helps to control network saturation
Expand Down
1 change: 1 addition & 0 deletions distributed/nanny.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ async def kill(self, timeout=2, executor_wait=True):
"executor_wait": executor_wait,
}
)
await asyncio.sleep(0) # otherwise we get broken pipe errors
self.child_stop_q.close()

while process.is_alive() and loop.time() < deadline:
Expand Down