question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynamically change task priorities

See original GitHub issue

Dask 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
mrocklincommented, Nov 22, 2017

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.

(user-defined-priority, scheduler first come first served priority, priority from graph placement)
0reactions
jakirkhamcommented, Feb 12, 2018

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 Futures in them.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found