Skip to content

Commit

Permalink
fix: allow greater queue with max threads > 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Mar 24, 2024
1 parent 9b77ab1 commit c9b446d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions horde_worker_regen/bridge_data/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ def validate_performance_modes(self) -> reGenBridgeData:
"The queue_size value has been set to 3 because the max_threads value is 2.",
)

if self.max_threads > 2 and self.queue_size > 1:
self.queue_size = 1
if self.max_threads > 2 and self.queue_size > 2:
self.queue_size = 2
logger.warning(
"The queue_size value has been set to 1 because the max_threads value is greater than 2.",
"The queue_size value has been set to 2 because the max_threads value is greater than 2.",
)

if self.very_high_memory_mode and not self.high_memory_mode:
Expand Down

0 comments on commit c9b446d

Please sign in to comment.