Skip to content

How to find out what actual location of data by its future? #7113

Answered by jrbourbeau
YarShev asked this question in Q&A
Discussion options

You must be logged in to vote

Client.who_has will list the workers which are storing a Future

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',)}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@YarShev
Comment options

Answer selected by jsignell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants