Skip to content

Commit

Permalink
re-added missing thread start
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Sep 16, 2023
1 parent 4b18948 commit 5a688ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bridgeData_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ max_context_length: 1024
# When set to true, the horde alias behind the API key will be appended to the model that is advertised to the horde
# This will prevent the model from being used from the shared pool, but will ensure that no other worker
# can pretend to serve it
branded_model: true
branded_model: false

## Alchemist (Image interrogation and post-processing)

Expand Down
3 changes: 2 additions & 1 deletion worker/bridge_data/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ def reload_models(self, model_manager):
if self.models_reloading:
return
self.models_reloading = True
thread = threading.Thread(target=self._reload_models, args=(model_manager,))
thread = threading.Thread(target=self._reload_models, args=(model_manager,), daemon=True)
thread.start()

@logger.catch(reraise=True)
def _reload_models(self, model_manager):
Expand Down

0 comments on commit 5a688ff

Please sign in to comment.