perf(ebooks): feed configured backfill workers

This commit is contained in:
rxwatcher
2026-07-22 13:43:57 +02:00
parent 537b3f6476
commit 37adec320e
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ const (
maxEnrichmentRetry = 24 * time.Hour
transientRetryBase = 5 * time.Minute
skippedRetryHorizon = 15 * time.Minute
claimCandidateWindow = 64
claimCandidateWindow = maxEnrichWorkers
)
type EnrichmentOutcome string
+2 -2
View File
@@ -87,8 +87,8 @@ func TestEnrichmentQueueClaimQueryUsesAtomicLeasedClaims(t *testing.T) {
}
})
}
if claimCandidateWindow <= 0 || claimCandidateWindow > 256 {
t.Fatalf("claim candidate window = %d, want a fixed sane bound", claimCandidateWindow)
if claimCandidateWindow != maxEnrichWorkers {
t.Fatalf("claim candidate window = %d, want worker ceiling %d", claimCandidateWindow, maxEnrichWorkers)
}
}