Skip to content

Commit

Permalink
fix: submit exit on fault
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Jan 11, 2024
1 parent 8ad75d0 commit 762091f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions horde_worker_regen/process_management/process_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1713,16 +1713,19 @@ async def submit_single_generation(self, new_submit: PendingSubmitJob) -> Pendin
):
logger.warning(f"Job {new_submit.job_id} does not exist, removing from completed jobs")
new_submit.fault()
return new_submit

if "already submitted" in job_submit_response.message:
logger.debug(
f"Job {new_submit.job_id} has already been submitted, removing from completed jobs",
)
new_submit.fault()
return new_submit

if "Please check your worker speed" in job_submit_response.message:
logger.error(job_submit_response.message)
new_submit.fault()
return new_submit

error_string = (
f"Failed to submit job (API Error) " f"{new_submit.retry_attempts_string}: {job_submit_response}"
Expand Down

0 comments on commit 762091f

Please sign in to comment.