Skip to content

Commit

Permalink
fix test failure
Browse files Browse the repository at this point in the history
the `for tag in done_tags:` was resetting the existing `tag` variable and
breaking things.
  • Loading branch information
philandstuff committed Nov 26, 2024
1 parent 41adaa9 commit 897e28e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/cog/server/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def predict(
done_tags = [
tag for tag in self._predict_tasks if self._predict_tasks[tag].done()
]
for tag in done_tags:
del self._predict_tasks[tag]
for done_tag in done_tags:
del self._predict_tasks[done_tag]

self._predict_tasks[tag] = task

Expand Down

0 comments on commit 897e28e

Please sign in to comment.