Skip to content

Commit

Permalink
Update task_pool.py
Browse files Browse the repository at this point in the history
  • Loading branch information
justheuristic authored Sep 7, 2022
1 parent 1431240 commit c241505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hivemind/moe/server/task_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def _pool_input_loop(self, pending_batches: Dict[Any, List[Task]], *args, **kwar
for skip_i in range(prev_num_tasks):
finished_task_timestamp = (
self.undispatched_task_timestamps.get()
) # earlier timestamp = lower (faster) priority
) # earlier timestamp = smaller (better) priority, earlier processing
if skip_i == prev_num_tasks - 1:
self.priority = finished_task_timestamp

Expand Down

0 comments on commit c241505

Please sign in to comment.