Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Internal Task Priorities #389

Open
dbedi3311 opened this issue Mar 20, 2023 · 0 comments
Open

Add Support for Internal Task Priorities #389

dbedi3311 opened this issue Mar 20, 2023 · 0 comments

Comments

@dbedi3311
Copy link

Creating priorities for tasks internally in Dagger would allow for more fine-grained scheduling. Naively, we could look at a task graph and assign it a priority based on the number of dependencies it unlocks, the number of outgoing edges. This assumes the bottleneck case: that downstream tasks would open up because of the completion of this task, allowing for more optionality in choosing which tasks to schedule in the future.

On the other hand, completing tasks which are part of branches that terminate sooner, would allow for us to release memory sooner. An ideal solution would be a mix of these as described in https://github.com/dask/dask/blob/main/dask/order.py (Dask's implementation).

In short, prioritizing tasks would better help our scheduler decide which ones to run first on an unbusy worker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant