Expand description
Verdict-ranked candidate selection shared by the fetcher and backfill.
A caller hands an eligibility-filtered, priority-ordered server list to
[rank_candidates]; the per-server ShouldAttempt verdict reorders and
drops it.
Enums§
- When
AllBacked Off - Selects how ranking handles a pool with no immediately eligible server.
Functions§
- rank_
from_ 🔒verdicts - Order
YesbeforeDeprioritizebeforeNo, preserving input order within each rank, then dropNounless every candidate is backed off andwhen_allisAttempt.
Type Aliases§
- Candidates
- Candidate servers for one fetch, with three entries stored inline.
- Verdicts 🔒
- A candidate pool paired with each server’s verdict, sorted and filtered in
place by
rank_from_verdicts.