Only kinds below their target share are generated and run; one-controller flock guard

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Kral
2026-10-05 19:39:37 +02:00
parent 976274d48a
commit 4432ac896c
3 changed files with 44 additions and 11 deletions

View File

@@ -279,7 +279,7 @@ def run_balanced(part, parts, deadline):
if blocked:
print("kinds skipped (low acceptance):", sorted(blocked), flush=True)
waiting = {k for k, n in backlog_by_kind().items() if n > BAL_KIND_BACKLOG}
allowed = set(mix.TYPE_SHARE) - blocked - waiting
allowed = (set(mix.TYPE_SHARE) - blocked - waiting) & mix.below_target(counts) # only kinds below their share
if not allowed:
time.sleep(120) # every kind has a backlog: the trajectories are the slower side
continue