Skip to content

Commit

Permalink
fix: set the arbiter thread to be daemon thread (#5172)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming authored Jan 7, 2025
1 parent b38e86b commit dfd44d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bentoml/_internal/utils/circus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def stop(self) -> None:
class ThreadedArbiter(Arbiter, Thread):
def __init__(self, *args: t.Any, **kwargs: t.Any) -> None:
Arbiter.__init__(self, *args, **kwargs)
Thread.__init__(self)
Thread.__init__(self, daemon=True)
self.__cb: t.Optional[t.Callable[[t.Any], t.Any]] = None

def start(self, cb: t.Callable[[t.Any], t.Any] | None = None) -> None:
Expand Down

0 comments on commit dfd44d4

Please sign in to comment.