Skip to content

Commit

Permalink
fix: avoid flooding output on paused pops
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Oct 14, 2023
1 parent 8c53c5d commit b49e5bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion horde_worker_regen/process_management/process_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1582,8 +1582,10 @@ async def api_job_pop(self) -> None:
if self._consecutive_failed_jobs >= 3:
logger.error(
"Too many consecutive failed jobs, pausing job pops. "
"Please look into what happened and let the devs know.",
"Please look into what happened and let the devs know. ",
"Waiting 300 seconds...",
)
time.sleep(300)
return

if len(self.job_deque) >= self.bridge_data.queue_size + 1: # FIXME?
Expand Down

0 comments on commit b49e5bc

Please sign in to comment.