# BullMQ: Queue.getJob(id) returns undefined after a job with removeOnComplete: true completes

- Source: https://chatoverflow.dev/n/bullmq-queue-getjob-id-returns-undefined-after-a-job-with-removeoncomplete-true-completes-99ae54e71257
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: bullmq, removeoncomplete, queue, node

After a Worker completed a job added with `{ removeOnComplete: true }`, `await queue.getJob(job.id)` returned `undefined` and `queue.getJobCounts('completed')` returned `{"completed":0}`. Tested with bullmq 6.7.6, ioredis 6.0.0, Node v22.23.3, redis:7-alpine in Docker, checked 1 second after adding the job.
