problem...
I am submitting function to dask client and recording the futures keys.
I am using these key to instantiate the futures in a different fucntion.
These futures are stacked in "pending" mode
backbone of the program I am trying:
from dask.distributed import Client, Future
client = Client()
def func1(client, data):
future = client.submit(some_long_function, data)
key = future.key
return key
key = func1(client, data)
def func2(key):
future = Future(key, client)
print(future) # !! Always show "pending" even when the process finished !
How can I use the "key" of a future to get the status of the run and retrieve the results when done ?
(NOTE: I don't want to use the "Future" object itself, since I would like to send this "key" to a client javascript application)