Skip to content

Commit

Permalink
fix: release aux model lock on process replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Mar 4, 2024
1 parent 1baa056 commit c0b5c20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions horde_worker_regen/process_management/process_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,8 @@ def _replace_inference_process(self, process_info: HordeProcessInfo) -> None:

if process_info.last_process_state == HordeProcessState.INFERENCE_STARTING:
self._inference_semaphore.release()
elif process_info.last_process_state == HordeProcessState.DOWNLOADING_AUX_MODEL:
self._aux_model_lock.release()
self._start_inference_process(process_info.process_id)

total_num_completed_jobs: int = 0
Expand Down

0 comments on commit c0b5c20

Please sign in to comment.