bullmq icon indicating copy to clipboard operation
bullmq copied to clipboard

Store the queues defaultJobOptions independently from the jobs to reduce memory consumption

Open lukas-becker0 opened this issue 7 months ago • 2 comments

I noticed that the defaultJobOptions are added to each job in redis, I thought they would be stored independently from the jobs.

I think it would be nice to store the defaultJobOptions in the queue and not add them to each job in redis, that would reduce the memory consumption e.g. when using custom job retain options for completed and failed jobs.

lukas-becker0 avatar Jun 27 '24 19:06 lukas-becker0