Kaynağa Gözat

fix(job-queue-plugin): Fix ignored values from BullMQ workerOptions (#3440)

Száray Bálint 10 ay önce
ebeveyn
işleme
a9aea249cf

+ 1 - 0
packages/job-queue-plugin/src/bullmq/bullmq-job-queue-strategy.ts

@@ -57,6 +57,7 @@ export class BullMQJobQueueStrategy implements InspectableJobQueueStrategy {
         this.options = {
         this.options = {
             ...options,
             ...options,
             workerOptions: {
             workerOptions: {
+                ...options.workerOptions,
                 removeOnComplete: options.workerOptions?.removeOnComplete ?? {
                 removeOnComplete: options.workerOptions?.removeOnComplete ?? {
                     age: 60 * 60 * 24 * 30,
                     age: 60 * 60 * 24 * 30,
                     count: 5000,
                     count: 5000,