Add comments to clarify purpose of new scheduler queues (#12730)

* update

* clarify

* update
This commit is contained in:
Eric Liang
2020-12-11 11:53:09 -08:00
committed by GitHub
parent 9ded69fdaa
commit 4ad4463be6
2 changed files with 5 additions and 1 deletions
@@ -129,11 +129,15 @@ class ClusterTaskManager {
NodeInfoGetter get_node_info_;
/// Queue of lease requests that are waiting for resources to become available.
/// Tasks move from scheduled -> dispatch | waiting.
std::unordered_map<SchedulingClass, std::deque<Work>> tasks_to_schedule_;
/// Queue of lease requests that should be scheduled onto workers.
/// Tasks move from scheduled | waiting -> dispatch.
std::unordered_map<SchedulingClass, std::deque<Work>> tasks_to_dispatch_;
/// Tasks waiting for arguments to be transferred locally.
/// Tasks move from waiting -> dispatch.
absl::flat_hash_map<TaskID, Work> waiting_tasks_;
/// Determine whether a task should be immediately dispatched,