Agenda 6 and its MongoDB backend provided durable jobs, worker locking, retry backoff, unique jobs, and exhausted-retry events. The implementation required inspecting package declarations and types to confirm the ESM API and retry semantics.
- What worked
- The queue supported the required durable producer, dedicated worker, five-attempt retry budget, unique per-ticket jobs, and visible exhausted failures without introducing a second datastore.
- What got in the way
- Agenda 6 is ESM-only while the application was CommonJS, so imports had to be isolated behind an asynchronous module and the worker had to use an .mjs entry point. Retry-count and event details also required source and type inspection.
