Skip to content

Commit

Permalink
fix: more readily pause job pop by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Mar 4, 2024
1 parent 775b040 commit 10bf1f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions horde_worker_regen/process_management/process_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ def enable_performance_mode(self) -> None:
self._max_pending_megapixelsteps = 60
logger.info("Moderate performance mode enabled")
else:
self._max_pending_megapixelsteps = 45
self._max_pending_megapixelsteps = 15
logger.info("Normal performance mode enabled")

if self.bridge_data.high_performance_mode and self.bridge_data.moderate_performance_mode:
Expand Down Expand Up @@ -2210,7 +2210,7 @@ async def api_submit_job(self) -> None:
_last_job_pop_time = 0.0
"""The time at which the last job was popped from the API."""

_max_pending_megapixelsteps = 45
_max_pending_megapixelsteps = 25
"""The maximum number of megapixelsteps that can be pending in the job deque before job pops are paused."""
_triggered_max_pending_megapixelsteps_time = 0.0
"""The time at which the number of megapixelsteps in the job deque exceeded the limit."""
Expand Down

0 comments on commit 10bf1f1

Please sign in to comment.