BullMQ: Error: Missing lock for job 42. moveToFinished / job stalled more than allowable limit
A BullMQ worker lost the lock on a job (it took too long or the event loop was blocked), so the job is considered stalled.
Error: Missing lock for job 42. moveToFinishedjob stalled more than allowable limitBullMQ Missing lock for jobError: Job stalled more than allowable limitMissing lock for job moveToDelayed Meaning
Long CPU-bound jobs block the Node event loop so lock renewal fails. Fix by using sandboxed processors/worker threads, increasing lockDuration, avoiding synchronous heavy work, and ensuring Redis connectivity (maxRetriesPerRequest: null, no evictions: maxmemory-policy noeviction).
Common causes
- CPU-bound job blocking the event loop
lockDurationshorter than job step- Redis latency/disconnects
- Redis
maxmemory-policyevicting BullMQ keys - Multiple workers with clock skew
⚡ Quick fix
- Use sandboxed processors (
new Worker(name, "./processor.js")) - Increase
lockDurationandstalledInterval - Set Redis
maxmemory-policy noeviction
Detailed fix by platform
Node.js
new Worker("queue", processor, { connection, lockDuration: 60000 });
How to diagnose
- Event loop — Blocked?
- Lock — Duration vs job time?
- Redis — noeviction?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Bad file format reading the append only file / AOF corrupted Redis: Bad file format reading the append only file: make a backup of your AOF file, then use ./redis-check-aof --fix <filename>
- BUSY Redis is busy running a script Redis: (error) BUSY Redis is busy running a script. You can only call SCRIPT KILL or SHUTDOWN NOSAVE
- Celery with Redis: tasks run twice (visibility_timeout) Celery: Task executed twice / Restoring unacked messages — Redis broker visibility_timeout shorter than task ETA
Most viewed in Redis
- READONLY You can't write against a read only replica Redis: READONLY You can't write against a read only replica
- MISCONF Redis: MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk
- OOM command not allowed Redis: OOM command not allowed when used memory > 'maxmemory'
Other ways to find it
Where this error sits
Origin: Data. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 5 Nov 2026