Dynamically change task priorities
See original GitHub issueDask is great for the current workflow that I’m using - read a number of tables, run some functions on each, output the result as a table where each cell either shows the initial table ID or the result of one of the functions in the pipeline.
Now that I’m implementing a UI for this table, the need to sort and filter interactively it becomes apparent, as well as the need to show intermediate results right as they’re ready.
Judging by the source of distributed.scheduler
, the current implementation doesn’t allow for dynamic task priority. Are there any plans to implement it? Or maybe any ideas on how I can implement it in the best way possible?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Dynamically adjust job priorities within priority bands - IBM
The Dynamically adjust job priorities within priority bands system value is also known as QDYNPTYSCD. You can use this system value to specify...
Read more >A Quick Guide to Dynamic Prioritization l Nave
Start making reliable decisions and eliminating the bottlenecks caused by unclear priorities with a dynamic prioritization system.
Read more >Changing Priority of Tasks - Tutorials
vTaskPrioritySet(): This function is used to change/Set the priority of a task. For this we need to pass the handle of the task...
Read more >D.5.1 Dynamic Priorities for Tasks
D.5.1 Dynamic Priorities for Tasks. 1. This clause describes how the base priority of a task can be modified or queried at run...
Read more >Dynamic Priority. How using a queue for your tasks… - Medium
What good is it to spend all day “prioritizing the backlog” if a week later priorities change and every single task needs to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We would probably just send an
update-graph
message with new priority values without any graph. This almost certainly doesn’t work now, but could be made to.The real challenge here is that the scheduler currently auto-increments priority on every new update_graph call, preferring older tasks to newer ones. It’s not clear to me how we would change this policy. Maybe there is a third policy that overrides the other two.
Opened issue ( https://github.com/dask/distributed/issues/1753 ), which is similar to this one except that it would auto-propagate priority changes via user operations on Dask collections that have
Future
s in them.