work on ceo
This commit is contained in:
parent
c8dcd697c9
commit
b25222778e
18 changed files with 391 additions and 110 deletions
|
|
@ -88,8 +88,8 @@ async function processDirect<T>(
|
|||
delay: index * delayPerItem,
|
||||
priority: options.priority || undefined,
|
||||
attempts: options.retries || 3,
|
||||
removeOnComplete: options.removeOnComplete || 10,
|
||||
removeOnFail: options.removeOnFail || 5,
|
||||
removeOnComplete: options.removeOnComplete || 100,
|
||||
removeOnFail: options.removeOnFail || 100,
|
||||
},
|
||||
}));
|
||||
|
||||
|
|
@ -151,8 +151,8 @@ async function processBatched<T>(
|
|||
delay: batchIndex * delayPerBatch,
|
||||
priority: options.priority || undefined,
|
||||
attempts: options.retries || 3,
|
||||
removeOnComplete: options.removeOnComplete || 10,
|
||||
removeOnFail: options.removeOnFail || 5,
|
||||
removeOnComplete: options.removeOnComplete || 100,
|
||||
removeOnFail: options.removeOnFail || 100,
|
||||
},
|
||||
};
|
||||
})
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ export class DeadLetterQueueHandler {
|
|||
|
||||
await this.dlq.add('failed-job', dlqData, {
|
||||
removeOnComplete: 100,
|
||||
removeOnFail: 50,
|
||||
removeOnFail: 100,
|
||||
});
|
||||
|
||||
this.logger.error('Job moved to DLQ', {
|
||||
|
|
|
|||
|
|
@ -63,8 +63,8 @@ export class Queue {
|
|||
this.bullQueue = new BullQueue(queueName, {
|
||||
connection,
|
||||
defaultJobOptions: {
|
||||
removeOnComplete: 10,
|
||||
removeOnFail: 5,
|
||||
removeOnComplete: 100,
|
||||
removeOnFail: 100,
|
||||
attempts: 3,
|
||||
backoff: {
|
||||
type: 'exponential',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue