Skip to content

Commit

Permalink
vine: hungry submit
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZhou5042 committed Nov 25, 2024
1 parent 8530039 commit 0023faa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ def _dask_execute(self, dsk, keys):
while (
enqueued_calls
and (not self.submit_per_cycle or submitted < self.submit_per_cycle)
and (not self.max_pending or pending < self.max_pending)
and (not self.max_pending or pending < self.max_pending
and self.hungry())
):
self.submit(enqueued_calls.pop())
submitted += 1
Expand Down

0 comments on commit 0023faa

Please sign in to comment.