BUG: BullMQ orphan jobs remain when asset row is deleted — no GC for dangling jobs #73
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?
Already fixed.
DELETE /api/v1/assets/:id?hard=trueremoves any pending/delayed/prioritised BullMQ jobs that reference the asset before dropping the row (services/mam-api/src/routes/assets.js:494-505). Soft-delete (status=archived) is the default and leaves jobs alone, which is the intended behaviour.Fix Plan — #73 BullMQ orphan jobs on asset delete
Root cause: DELETE /:id?hard=true deletes S3 objects and asset row but never removes associated BullMQ jobs from proxy and thumbnail queues. Workers receive jobs, try to fetch missing asset, produce silent failures.
Fix — remove BullMQ jobs before deleting asset:
Files: src/routes/assets.js DELETE handler
Effort: ~1h
**Priority: P2 — orphaned jobs