From 10bf1f16a678dd9ea7117351c3259e4d0edac7b3 Mon Sep 17 00:00:00 2001 From: tazlin Date: Mon, 4 Mar 2024 13:01:45 -0500 Subject: [PATCH] fix: more readily pause job pop by default --- horde_worker_regen/process_management/process_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/horde_worker_regen/process_management/process_manager.py b/horde_worker_regen/process_management/process_manager.py index 9658238f..ea0527fb 100644 --- a/horde_worker_regen/process_management/process_manager.py +++ b/horde_worker_regen/process_management/process_manager.py @@ -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: @@ -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."""