Skip to content

Commit

Permalink
fix: remove on shutdown hook (#40)
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming authored Feb 3, 2025
1 parent 3f07d59 commit f54ff9a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/comfy_pack/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,6 @@ def generate(
ret = ret[-1]
return ret

@bentoml.on_shutdown
def on_shutdown(self):
logger.info("Shutting down")
if not EXISTING_COMFYUI_SERVER:
self.watch_thread.join()
logger.info("Watch thread finished")

@bentoml.on_deployment
@staticmethod
def prepare_models():
Expand Down

0 comments on commit f54ff9a

Please sign in to comment.