queue.add options gets overriden by defaultJobOptions
Created by: otaviosoares
I have a code like the following and I expected the options passed to queue.add to have priority over queue's defaultJobOptions. However, as for now, if you have an option on defaultJobOptions it will always override anything you have in your add call. This was very confusing and it took me some time to figure out why it wasn't working.
const queue = new Queue('test', {
defaultJobOptions: {delay: 10000 }
});
queue.add('job', {}, { delay: 1000 });