Can you pass Future objects to apply_ufunc #6786
Unanswered
alessioarena
asked this question in
General
Replies: 1 comment
-
Closing as duplicate of #6803 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have an array to pass to a function mapped using
apply_ufunc
across a DataArray.This is relatively small, but gets replicated for every dask task and end up filling up the scheduler memory.
To address that I tried to pre-scatter the array to the dask cluster, and therefore provide the Future to
apply_ufunc
instead of the actual array.This is done using the
kwargs
argument, but it seems the computation is failing and I don't really know why that is the case.My gut feeling is that apply_ufunc recognises that I'm passing a dask object and tries to do something with that.
Here is a simplified code of what I'm trying to do:
and the function I'm applying:
Unfortunately it seems that using "parallelized" causes exceptions not to be raised back, and the scheduler keeps resubmitting the failed tasks over and over (I did check the various dask configurations in that respect)
Did anyone ever tried to do something like this?
Beta Was this translation helpful? Give feedback.
All reactions