media-processor and federation-sync queues never trim completed jobs (Redis growth) #100
Labels
No labels
bug
duplicate
enhancement
future
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/TeaLeaves#100
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium · Confidence: High · Effort: XS · Category: ops
Evidence
api/src/services/mediaProcessorWorker.ts:19-new Queue(QUEUE_NAME, { connection })with noremoveOnComplete/Fail.api/src/services/federationSyncWorker.ts:27- same. Contrast import/reanalyze/bulk/trash/ap-delivery/update-check queues, which set retention.Problem
Every media upload and every federation sync leaves a completed job in Redis forever; two queues don't set job retention.
Impact
Steady unbounded Redis growth on a media-heavy or federated instance → eventual OOM/eviction affecting sessions and all queues.
Fix
Add
defaultJobOptions: { removeOnComplete: 100, removeOnFail: 100 }to both queues.Acceptance criteria
Filed from the 2026-07-15 codebase audit. Full report:
docs/.internal/report-2026-07-15.md(gitignored).Fixed in
c1ed843(v7.2.0 wave 2).Both queues now set retention, matching the other seven:
—
mediaProcessorWorker.ts(processorQueue) andfederationSyncWorker.ts(syncQueue). Addedattempts: 1alongside, since every other queue declares it explicitly and these two were relying on the BullMQ default.Acceptance criteria:
CI green (242/242).