-
Notifications
You must be signed in to change notification settings - Fork 511
Closed
Labels
Description
The default job options set on the queue level are not obeyed when enqueuing jobs with the flow producer.
For instance, creating a queue like this:
const queue = new Queue('a-queue', {
connection: redisClient,
defaultJobOptions: {
attempts: 3,
delay: 500,
removeOnComplete: 25,
removeOnFail: 25,
backoff: {
type: 'exponential',
delay: 5000,
},
},
limiter: {
groupKey: 'someId',
},
});
The job dispatched by the flow producer will have the following properties:
{
"attempts": 0,
"delay": 0
}
Is there anything else I should be doing for it to work correctly?
jtomaszewski