Closed
Description
Goal: Share a few small queues between tasks under various Client configurations.
Issue: Using distributed 1.22.0
,
from dask.distributed import Client, Queue
client = Client(processes=False)
q = Queue()
def put():
q.put(55)
def get():
print(q.get())
fut = client.submit(put)
res = client.submit(get)
results in
Traceback (most recent call last):
File ".../python3.6/site-packages/distributed/queues.py", line 261, in __setstate__
assert client.address == address
AttributeError: 'Client' object has no attribute 'address'
...
File ".../python3.6/site-packages/distributed/comm/core.py", line 178, in _raise
raise IOError(msg)
OSError: Timed out trying to connect to 'inproc://10.0.0.41/16785/7' after 10 s: connect() didn't finish in time
This works as intended when processes=True
. I also can't use queue.Queue
because it won't be pickleable, so I was hoping dask.distributed.Queue
would allow me to work around that.
Metadata
Metadata
Assignees
Labels
No labels
Activity