Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Apr 14, 2024
1 parent a5a6441 commit bf405d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions horde/classes/stable/waiting_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ def require_upfront_kudos(self, counted_totals, total_threads):
# if 'RealESRGAN_x4plus' in self.gen_payload.get('post_processing', []):
# return(True,max_res)
# if HORDE_UPFRONT_KUDOS_ON_WORKERLIST is set to 1, then specifying a worker allow/deny list requires upfront kudos
logger.debug(len(self.workers))
logger.debug(self.workers)
if os.getenv("HORDE_UPFRONT_KUDOS_ON_WORKERLIST", 0) == 1 and len(self.workers) > 0:
return (True, max_res)
return (False, max_res)
Expand Down

0 comments on commit bf405d6

Please sign in to comment.