Skip to content

Commit

Permalink
fix: don't recover safety as inference
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed May 19, 2024
1 parent 6969607 commit d6e4743
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion horde_worker_regen/process_management/process_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3742,7 +3742,10 @@ def _check_and_replace_process(

if time_elapsed > timeout and process_info.last_process_state == state:
logger.error(f"{process_info} {error_message}, replacing it")
self._replace_inference_process(process_info)
if process_info.process_type == HordeProcessType.SAFETY:
self._replace_all_safety_process()
if process_info.process_type == HordeProcessType.INFERENCE:
self._replace_inference_process(process_info)
return True
return False

Expand Down

0 comments on commit d6e4743

Please sign in to comment.