Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Sep 13, 2024
1 parent ae80b12 commit dc7895e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion horde/database/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,17 @@ def count_skipped_image_wp(worker, models_list=None, blacklist=None, priority_us
skipped_wps = open_wp_list.filter(
ImageWaitingPrompt.extra_slow_workers == False, # noqa E712
).count()
logger.debug(open_wp_list.all())
test = (db.session.query(ImageWaitingPrompt)
.options(noload(ImageWaitingPrompt.processing_gens))
.outerjoin(
WPModels,
WPAllowedWorkers,
)
.filter(
ImageWaitingPrompt.n > 0,
)
)
logger.debug(test.all())
if skipped_wps > 0:
ret_dict["performance"] = ret_dict.get("performance",0) + skipped_wps
# Count skipped WPs requiring trusted workers
Expand Down

0 comments on commit dc7895e

Please sign in to comment.