Skip to content

Commit

Permalink
Overhaul server architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
mryab committed May 6, 2021
1 parent e25348c commit 6fb6252
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions hivemind/server/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ def iterate_minibatches_from_pools(self, timeout=None):
logger.debug("Waiting for inputs from task pools")
ready_fds = selector.select()
ready_objects = {key.data for (key, events) in ready_fds}
if self.SHUTDOWN_TRIGGER in ready_objects:
break # someone asked us to shutdown, break from the loop

logger.debug("Choosing the pool with highest priority")
pool = max(ready_objects, key=lambda pool: pool.priority)
Expand Down
1 change: 0 additions & 1 deletion hivemind/server/task_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ class TaskPool(TaskPoolBase):
:param timeout: wait for a subsequent task for at most this many seconds
:param pool_size: store at most this many unprocessed tasks in a queue
:param prefetch_batches: prepare up to this many *batches* in background for faster off-loading to runtime
:param uid: pool identifier used for shared array allocation
:param start: if True, start automatically at the end of __init__
"""

Expand Down

0 comments on commit 6fb6252

Please sign in to comment.