Skip to content

Commit

Permalink
revert last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin committed Nov 7, 2023
1 parent d2f5459 commit 3e4fd85
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,11 @@ class ContinuousBatchingQueues:
On request for next - a job will be returned with an operator key and
a batch of inputs. The default heuristic for the next job will be
a combination of wait time and largest batch that can be run
:param mutex: Optional Lock object to be shared between continuous batching runners
"""

def __init__(self, mutex: Optional[Lock] = None):
def __init__(self):
self._queues = {} # Dict[Any, ContinuousBatchingQueue]
self._mutex = mutex or Lock()
self._mutex = Lock()

# add condition for wait/notify when an item is added to any queue
self._item_added = Condition(self._mutex)
Expand Down

0 comments on commit 3e4fd85

Please sign in to comment.