Queue Worker Runtime Pitfalls

Use when a BullMQ queue (on Redis) or a Graphile Worker queue (on PostgreSQL) is wired into a Node service: opposite connection behaviour for the code that adds jobs and the worker (fail fast versus wait forever, offline queue, per-request retries), the ioredis key prefix, undefined values passed as queue names, custom job ids, throwing Error objects and the unrecoverable error that skips retries, shutdown on SIGTERM and stalled jobs, 'Missing lock' errors, clear-text payloads, and for Graphile Worker the lock window after a hard kill, job keys and their modes, perma-failed jobs, un-awaited promises and splitting non-idempotent jobs.

techmefr Updated

File contents

techmefr/mentis commit f44e15af9a

Frequently asked questions

npx get-skill add techmefr/queue-worker-runtime-pitfalls