Closed
Description
I am having a lot of failed jobs, but when I try to get them via:
const jobs = await queue.getJobs( [ 'failed' ] );
They are returned as undefined
. e.G.:
[ undefined, undefined, undefined, ... ]
As I can't get the job ID this way, I double checked which keys it is trying to get by setting process.env.DEBUG = "ioredis:*";
. When I manually check one of the keys that returns an undefined
job via the redis-cli
I get an empty result:
HGETALL bull:short:825F243AD7000000CF2B022C0100296E5A100417BA75E26AFC434291F746A7608C065246645F696400645F243AD7DE5C4A0015CB2CDD0004
(empty array)
Any reason how this could happen or how I could investigate further?