Understanding resources #4209
Unanswered
SultanOrazbayev
asked this question in
Q&A
Replies: 1 comment
-
I have the exact same question, and I have a relevant issue #4491 where if you compare Approach 2 and Approach 3 you can definitely see that the resource annotation affects execution order. It's good to know that this effect cannot be avoided either with |
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
-
I am trying to understand the correct use of
resources
(https://distributed.dask.org/en/latest/resources.html) with custom priorities.My workflow involves tasks that have somewhat unpredictable memory requirements (multiplication of very large sparse matrices) and to avoid worker crashes I want to restrict the number of tasks per worker. This can be achieved by specifying some arbitrary resource constraint
foo
and requestingfoo
for each task.Now, further in the pipeline, results of this task (task A) are consumed by other tasks (task B) which have lower memory constraints (element-wise multiplication of sparse matrices), so to reduce the overall memory burden I want to give priority to task B. This can be achieved by specifying the priority of each task with
priority
(higher value = higher priority).Combining the resources and task priority does not seem to work for me. And I am not sure if this is a bug or a feature.
Beta Was this translation helpful? Give feedback.
All reactions