Skip to content

Commit

Permalink
fix: ensure ttl is always at least 150s
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Oct 6, 2024
1 parent 7cc13c3 commit ad1ddc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions horde/classes/stable/processing_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ def set_job_ttl(self):
# Flux is way slower than Stable Diffusion
if any(model_reference.get_model_baseline(mn) in ["flux_1"] for mn in self.wp.get_model_names()):
self.job_ttl = self.job_ttl * 3
if self.job_ttl < 150:
self.job_ttl = 150
if self.worker.extra_slow_worker is True:
self.job_ttl = self.job_ttl * 3
db.session.commit()

0 comments on commit ad1ddc7

Please sign in to comment.