Skip to content

Commit

Permalink
fix bug in executor with slowly generated mcps
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Oct 31, 2024
1 parent b73c43c commit 45cb289
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ def _clearinghouse_worker(self) -> None: # noqa: C901
def _handle_batch_completion(
batch: List[_BatchPartitionWorkItem], future: Future
) -> None:
nonlocal workers_available
workers_available += 1

with clearinghouse_state_lock:
for item in batch:
keys_no_longer_in_flight.add(item.key)
Expand Down

0 comments on commit 45cb289

Please sign in to comment.