How to find out what actual location of data by its future? #7113
-
Is it possible to get data location (node IP) by its future? from distributed.client import Client
client = Client()
future = client.scatter(1, hash=False) # How to detect node IP of the data (1) by its future? |
Beta Was this translation helpful? Give feedback.
Answered by
jrbourbeau
Jan 25, 2021
Replies: 1 comment 1 reply
-
In [1]: from distributed.client import Client
...: client = Client()
...: future = client.scatter(1, hash=False) # How to detect node IP of the data (1) by its future?
In [2]: client.who_has(future)
Out[2]: {'int-2f2391b7c0024ea7bd8385aa140bfaea': ('tcp://127.0.0.1:53702',)} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jsignell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Client.who_has
will list the workers which are storing aFuture