Skip to content

Commit

Permalink
Update python/cog/server/worker.py
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Stenning <[email protected]>
Signed-off-by: Philip Potter <[email protected]>
  • Loading branch information
philandstuff and nickstenning committed Nov 25, 2024
1 parent 8630036 commit cf0f8b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cog/server/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def predict(
self, payload: Dict[str, Any], tag: Optional[str] = None
) -> "Future[Done]":
# TODO: tag is Optional, but it's required when in concurrent mode and
# basically unnecesary in sequential mode. Should we have a separate
# basically unnecessary in sequential mode. Should we have a separate
# ConcurrentWorker?
if self._max_concurrency > 1 and tag is None:
raise TypeError(
Expand Down

0 comments on commit cf0f8b2

Please sign in to comment.