@okf/ootils 1.8.6 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.d.mts +2 -7
- package/dist/browser.d.ts +2 -7
- package/dist/browser.js +5 -8
- package/dist/browser.mjs +5 -8
- package/dist/node.d.mts +4 -8
- package/dist/node.d.ts +4 -8
- package/dist/node.js +8 -10
- package/dist/node.mjs +8 -10
- package/dist/universal.d.mts +2 -7
- package/dist/universal.d.ts +2 -7
- package/dist/universal.js +5 -8
- package/dist/universal.mjs +5 -8
- package/package.json +1 -1
package/dist/browser.d.mts
CHANGED
|
@@ -602,6 +602,8 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
602
602
|
export { delay_9 as delay };
|
|
603
603
|
}
|
|
604
604
|
export { backoff_9 as backoff };
|
|
605
|
+
let delay_10: number;
|
|
606
|
+
export { delay_10 as delay };
|
|
605
607
|
let removeOnComplete_9: number;
|
|
606
608
|
export { removeOnComplete_9 as removeOnComplete };
|
|
607
609
|
let removeOnFail_9: number;
|
|
@@ -621,13 +623,6 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
621
623
|
export namespace workerConfig_9 {
|
|
622
624
|
let concurrency_9: number;
|
|
623
625
|
export { concurrency_9 as concurrency };
|
|
624
|
-
export namespace limiter_9 {
|
|
625
|
-
let max_9: number;
|
|
626
|
-
export { max_9 as max };
|
|
627
|
-
let duration_9: number;
|
|
628
|
-
export { duration_9 as duration };
|
|
629
|
-
}
|
|
630
|
-
export { limiter_9 as limiter };
|
|
631
626
|
}
|
|
632
627
|
export { workerConfig_9 as workerConfig };
|
|
633
628
|
}
|
package/dist/browser.d.ts
CHANGED
|
@@ -602,6 +602,8 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
602
602
|
export { delay_9 as delay };
|
|
603
603
|
}
|
|
604
604
|
export { backoff_9 as backoff };
|
|
605
|
+
let delay_10: number;
|
|
606
|
+
export { delay_10 as delay };
|
|
605
607
|
let removeOnComplete_9: number;
|
|
606
608
|
export { removeOnComplete_9 as removeOnComplete };
|
|
607
609
|
let removeOnFail_9: number;
|
|
@@ -621,13 +623,6 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
621
623
|
export namespace workerConfig_9 {
|
|
622
624
|
let concurrency_9: number;
|
|
623
625
|
export { concurrency_9 as concurrency };
|
|
624
|
-
export namespace limiter_9 {
|
|
625
|
-
let max_9: number;
|
|
626
|
-
export { max_9 as max };
|
|
627
|
-
let duration_9: number;
|
|
628
|
-
export { duration_9 as duration };
|
|
629
|
-
}
|
|
630
|
-
export { limiter_9 as limiter };
|
|
631
626
|
}
|
|
632
627
|
export { workerConfig_9 as workerConfig };
|
|
633
628
|
}
|
package/dist/browser.js
CHANGED
|
@@ -461,7 +461,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
461
461
|
defaultJobOptions: {
|
|
462
462
|
backoff: {
|
|
463
463
|
type: "exponential",
|
|
464
|
-
delay:
|
|
464
|
+
delay: 4e3
|
|
465
465
|
},
|
|
466
466
|
attempts: 3,
|
|
467
467
|
removeOnComplete: 30,
|
|
@@ -491,7 +491,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
491
491
|
defaultJobOptions: {
|
|
492
492
|
backoff: {
|
|
493
493
|
type: "exponential",
|
|
494
|
-
delay:
|
|
494
|
+
delay: 4e3
|
|
495
495
|
},
|
|
496
496
|
attempts: 3,
|
|
497
497
|
removeOnComplete: 30,
|
|
@@ -668,7 +668,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
668
668
|
attempts: 3,
|
|
669
669
|
backoff: {
|
|
670
670
|
type: "exponential",
|
|
671
|
-
delay:
|
|
671
|
+
delay: 4e3
|
|
672
672
|
},
|
|
673
673
|
removeOnComplete: 30,
|
|
674
674
|
removeOnFail: 100
|
|
@@ -699,6 +699,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
699
699
|
type: "exponential",
|
|
700
700
|
delay: 2e3
|
|
701
701
|
},
|
|
702
|
+
delay: 4e3,
|
|
702
703
|
removeOnComplete: 30,
|
|
703
704
|
removeOnFail: 100
|
|
704
705
|
},
|
|
@@ -710,11 +711,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
710
711
|
}
|
|
711
712
|
},
|
|
712
713
|
workerConfig: {
|
|
713
|
-
concurrency: 1
|
|
714
|
-
limiter: {
|
|
715
|
-
max: 3,
|
|
716
|
-
duration: 6e4
|
|
717
|
-
}
|
|
714
|
+
concurrency: 1
|
|
718
715
|
}
|
|
719
716
|
}
|
|
720
717
|
};
|
package/dist/browser.mjs
CHANGED
|
@@ -425,7 +425,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
425
425
|
defaultJobOptions: {
|
|
426
426
|
backoff: {
|
|
427
427
|
type: "exponential",
|
|
428
|
-
delay:
|
|
428
|
+
delay: 4e3
|
|
429
429
|
},
|
|
430
430
|
attempts: 3,
|
|
431
431
|
removeOnComplete: 30,
|
|
@@ -455,7 +455,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
455
455
|
defaultJobOptions: {
|
|
456
456
|
backoff: {
|
|
457
457
|
type: "exponential",
|
|
458
|
-
delay:
|
|
458
|
+
delay: 4e3
|
|
459
459
|
},
|
|
460
460
|
attempts: 3,
|
|
461
461
|
removeOnComplete: 30,
|
|
@@ -632,7 +632,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
632
632
|
attempts: 3,
|
|
633
633
|
backoff: {
|
|
634
634
|
type: "exponential",
|
|
635
|
-
delay:
|
|
635
|
+
delay: 4e3
|
|
636
636
|
},
|
|
637
637
|
removeOnComplete: 30,
|
|
638
638
|
removeOnFail: 100
|
|
@@ -663,6 +663,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
663
663
|
type: "exponential",
|
|
664
664
|
delay: 2e3
|
|
665
665
|
},
|
|
666
|
+
delay: 4e3,
|
|
666
667
|
removeOnComplete: 30,
|
|
667
668
|
removeOnFail: 100
|
|
668
669
|
},
|
|
@@ -674,11 +675,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
674
675
|
}
|
|
675
676
|
},
|
|
676
677
|
workerConfig: {
|
|
677
|
-
concurrency: 1
|
|
678
|
-
limiter: {
|
|
679
|
-
max: 3,
|
|
680
|
-
duration: 6e4
|
|
681
|
-
}
|
|
678
|
+
concurrency: 1
|
|
682
679
|
}
|
|
683
680
|
}
|
|
684
681
|
};
|
package/dist/node.d.mts
CHANGED
|
@@ -609,6 +609,8 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
609
609
|
export { delay_9 as delay };
|
|
610
610
|
}
|
|
611
611
|
export { backoff_9 as backoff };
|
|
612
|
+
let delay_10: number;
|
|
613
|
+
export { delay_10 as delay };
|
|
612
614
|
let removeOnComplete_9: number;
|
|
613
615
|
export { removeOnComplete_9 as removeOnComplete };
|
|
614
616
|
let removeOnFail_9: number;
|
|
@@ -628,13 +630,6 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
628
630
|
export namespace workerConfig_9 {
|
|
629
631
|
let concurrency_9: number;
|
|
630
632
|
export { concurrency_9 as concurrency };
|
|
631
|
-
export namespace limiter_9 {
|
|
632
|
-
let max_9: number;
|
|
633
|
-
export { max_9 as max };
|
|
634
|
-
let duration_9: number;
|
|
635
|
-
export { duration_9 as duration };
|
|
636
|
-
}
|
|
637
|
-
export { limiter_9 as limiter };
|
|
638
633
|
}
|
|
639
634
|
export { workerConfig_9 as workerConfig };
|
|
640
635
|
}
|
|
@@ -829,9 +824,10 @@ declare namespace RedisCacheConnector {
|
|
|
829
824
|
* @param env - Optional environment override (defaults to current environment)
|
|
830
825
|
* @returns Mongoose Connection instance for the tenant-specific database
|
|
831
826
|
*/
|
|
832
|
-
declare function getDbByTenant({ tenant, env: _env }: {
|
|
827
|
+
declare function getDbByTenant({ tenant, env: _env, CLUSTER_NAME }: {
|
|
833
828
|
tenant: any;
|
|
834
829
|
env: any;
|
|
830
|
+
CLUSTER_NAME: any;
|
|
835
831
|
}): any;
|
|
836
832
|
|
|
837
833
|
declare function getModelByTenant({ tenant, modelName, schema, env }: {
|
package/dist/node.d.ts
CHANGED
|
@@ -609,6 +609,8 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
609
609
|
export { delay_9 as delay };
|
|
610
610
|
}
|
|
611
611
|
export { backoff_9 as backoff };
|
|
612
|
+
let delay_10: number;
|
|
613
|
+
export { delay_10 as delay };
|
|
612
614
|
let removeOnComplete_9: number;
|
|
613
615
|
export { removeOnComplete_9 as removeOnComplete };
|
|
614
616
|
let removeOnFail_9: number;
|
|
@@ -628,13 +630,6 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
628
630
|
export namespace workerConfig_9 {
|
|
629
631
|
let concurrency_9: number;
|
|
630
632
|
export { concurrency_9 as concurrency };
|
|
631
|
-
export namespace limiter_9 {
|
|
632
|
-
let max_9: number;
|
|
633
|
-
export { max_9 as max };
|
|
634
|
-
let duration_9: number;
|
|
635
|
-
export { duration_9 as duration };
|
|
636
|
-
}
|
|
637
|
-
export { limiter_9 as limiter };
|
|
638
633
|
}
|
|
639
634
|
export { workerConfig_9 as workerConfig };
|
|
640
635
|
}
|
|
@@ -829,9 +824,10 @@ declare namespace RedisCacheConnector {
|
|
|
829
824
|
* @param env - Optional environment override (defaults to current environment)
|
|
830
825
|
* @returns Mongoose Connection instance for the tenant-specific database
|
|
831
826
|
*/
|
|
832
|
-
declare function getDbByTenant({ tenant, env: _env }: {
|
|
827
|
+
declare function getDbByTenant({ tenant, env: _env, CLUSTER_NAME }: {
|
|
833
828
|
tenant: any;
|
|
834
829
|
env: any;
|
|
830
|
+
CLUSTER_NAME: any;
|
|
835
831
|
}): any;
|
|
836
832
|
|
|
837
833
|
declare function getModelByTenant({ tenant, modelName, schema, env }: {
|
package/dist/node.js
CHANGED
|
@@ -82,7 +82,7 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
|
|
|
82
82
|
defaultJobOptions: {
|
|
83
83
|
backoff: {
|
|
84
84
|
type: "exponential",
|
|
85
|
-
delay:
|
|
85
|
+
delay: 4e3
|
|
86
86
|
},
|
|
87
87
|
attempts: 3,
|
|
88
88
|
removeOnComplete: 30,
|
|
@@ -112,7 +112,7 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
|
|
|
112
112
|
defaultJobOptions: {
|
|
113
113
|
backoff: {
|
|
114
114
|
type: "exponential",
|
|
115
|
-
delay:
|
|
115
|
+
delay: 4e3
|
|
116
116
|
},
|
|
117
117
|
attempts: 3,
|
|
118
118
|
removeOnComplete: 30,
|
|
@@ -289,7 +289,7 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
|
|
|
289
289
|
attempts: 3,
|
|
290
290
|
backoff: {
|
|
291
291
|
type: "exponential",
|
|
292
|
-
delay:
|
|
292
|
+
delay: 4e3
|
|
293
293
|
},
|
|
294
294
|
removeOnComplete: 30,
|
|
295
295
|
removeOnFail: 100
|
|
@@ -320,6 +320,7 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
|
|
|
320
320
|
type: "exponential",
|
|
321
321
|
delay: 2e3
|
|
322
322
|
},
|
|
323
|
+
delay: 4e3,
|
|
323
324
|
removeOnComplete: 30,
|
|
324
325
|
removeOnFail: 100
|
|
325
326
|
},
|
|
@@ -331,11 +332,7 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
|
|
|
331
332
|
}
|
|
332
333
|
},
|
|
333
334
|
workerConfig: {
|
|
334
|
-
concurrency: 1
|
|
335
|
-
limiter: {
|
|
336
|
-
max: 3,
|
|
337
|
-
duration: 6e4
|
|
338
|
-
}
|
|
335
|
+
concurrency: 1
|
|
339
336
|
}
|
|
340
337
|
}
|
|
341
338
|
};
|
|
@@ -983,12 +980,13 @@ var init_getDbByTenant = __esm({
|
|
|
983
980
|
import_MongoConnector = __toESM(require_MongoConnector());
|
|
984
981
|
getDbByTenant = ({
|
|
985
982
|
tenant,
|
|
986
|
-
env: _env
|
|
983
|
+
env: _env,
|
|
984
|
+
CLUSTER_NAME
|
|
987
985
|
}) => {
|
|
988
986
|
if (!tenant) throw new Error("tenant id has not been provided");
|
|
989
987
|
const env = _env || import_MongoConnector.MongoConnector.getEnv();
|
|
990
988
|
const tenantToClusterMapping = import_MongoConnector.MongoConnector.getTenantToClusterMapping();
|
|
991
|
-
const thisClusterName = tenantToClusterMapping[tenant]?.CLUSTER_NAME?.[env];
|
|
989
|
+
const thisClusterName = CLUSTER_NAME ? CLUSTER_NAME?.[env] : tenantToClusterMapping[tenant]?.CLUSTER_NAME?.[env];
|
|
992
990
|
if (!thisClusterName) throw new Error("Could not find a CLUSTER_NAME mapped to this tenant + env");
|
|
993
991
|
const clusterConnections = import_MongoConnector.MongoConnector.getClusterConnections();
|
|
994
992
|
const dbName = `${tenant}_${env}`;
|
package/dist/node.mjs
CHANGED
|
@@ -87,7 +87,7 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
|
|
|
87
87
|
defaultJobOptions: {
|
|
88
88
|
backoff: {
|
|
89
89
|
type: "exponential",
|
|
90
|
-
delay:
|
|
90
|
+
delay: 4e3
|
|
91
91
|
},
|
|
92
92
|
attempts: 3,
|
|
93
93
|
removeOnComplete: 30,
|
|
@@ -117,7 +117,7 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
|
|
|
117
117
|
defaultJobOptions: {
|
|
118
118
|
backoff: {
|
|
119
119
|
type: "exponential",
|
|
120
|
-
delay:
|
|
120
|
+
delay: 4e3
|
|
121
121
|
},
|
|
122
122
|
attempts: 3,
|
|
123
123
|
removeOnComplete: 30,
|
|
@@ -294,7 +294,7 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
|
|
|
294
294
|
attempts: 3,
|
|
295
295
|
backoff: {
|
|
296
296
|
type: "exponential",
|
|
297
|
-
delay:
|
|
297
|
+
delay: 4e3
|
|
298
298
|
},
|
|
299
299
|
removeOnComplete: 30,
|
|
300
300
|
removeOnFail: 100
|
|
@@ -325,6 +325,7 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
|
|
|
325
325
|
type: "exponential",
|
|
326
326
|
delay: 2e3
|
|
327
327
|
},
|
|
328
|
+
delay: 4e3,
|
|
328
329
|
removeOnComplete: 30,
|
|
329
330
|
removeOnFail: 100
|
|
330
331
|
},
|
|
@@ -336,11 +337,7 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
|
|
|
336
337
|
}
|
|
337
338
|
},
|
|
338
339
|
workerConfig: {
|
|
339
|
-
concurrency: 1
|
|
340
|
-
limiter: {
|
|
341
|
-
max: 3,
|
|
342
|
-
duration: 6e4
|
|
343
|
-
}
|
|
340
|
+
concurrency: 1
|
|
344
341
|
}
|
|
345
342
|
}
|
|
346
343
|
};
|
|
@@ -988,12 +985,13 @@ var init_getDbByTenant = __esm({
|
|
|
988
985
|
import_MongoConnector = __toESM(require_MongoConnector());
|
|
989
986
|
getDbByTenant = ({
|
|
990
987
|
tenant,
|
|
991
|
-
env: _env
|
|
988
|
+
env: _env,
|
|
989
|
+
CLUSTER_NAME
|
|
992
990
|
}) => {
|
|
993
991
|
if (!tenant) throw new Error("tenant id has not been provided");
|
|
994
992
|
const env = _env || import_MongoConnector.MongoConnector.getEnv();
|
|
995
993
|
const tenantToClusterMapping = import_MongoConnector.MongoConnector.getTenantToClusterMapping();
|
|
996
|
-
const thisClusterName = tenantToClusterMapping[tenant]?.CLUSTER_NAME?.[env];
|
|
994
|
+
const thisClusterName = CLUSTER_NAME ? CLUSTER_NAME?.[env] : tenantToClusterMapping[tenant]?.CLUSTER_NAME?.[env];
|
|
997
995
|
if (!thisClusterName) throw new Error("Could not find a CLUSTER_NAME mapped to this tenant + env");
|
|
998
996
|
const clusterConnections = import_MongoConnector.MongoConnector.getClusterConnections();
|
|
999
997
|
const dbName = `${tenant}_${env}`;
|
package/dist/universal.d.mts
CHANGED
|
@@ -602,6 +602,8 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
602
602
|
export { delay_9 as delay };
|
|
603
603
|
}
|
|
604
604
|
export { backoff_9 as backoff };
|
|
605
|
+
let delay_10: number;
|
|
606
|
+
export { delay_10 as delay };
|
|
605
607
|
let removeOnComplete_9: number;
|
|
606
608
|
export { removeOnComplete_9 as removeOnComplete };
|
|
607
609
|
let removeOnFail_9: number;
|
|
@@ -621,13 +623,6 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
621
623
|
export namespace workerConfig_9 {
|
|
622
624
|
let concurrency_9: number;
|
|
623
625
|
export { concurrency_9 as concurrency };
|
|
624
|
-
export namespace limiter_9 {
|
|
625
|
-
let max_9: number;
|
|
626
|
-
export { max_9 as max };
|
|
627
|
-
let duration_9: number;
|
|
628
|
-
export { duration_9 as duration };
|
|
629
|
-
}
|
|
630
|
-
export { limiter_9 as limiter };
|
|
631
626
|
}
|
|
632
627
|
export { workerConfig_9 as workerConfig };
|
|
633
628
|
}
|
package/dist/universal.d.ts
CHANGED
|
@@ -602,6 +602,8 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
602
602
|
export { delay_9 as delay };
|
|
603
603
|
}
|
|
604
604
|
export { backoff_9 as backoff };
|
|
605
|
+
let delay_10: number;
|
|
606
|
+
export { delay_10 as delay };
|
|
605
607
|
let removeOnComplete_9: number;
|
|
606
608
|
export { removeOnComplete_9 as removeOnComplete };
|
|
607
609
|
let removeOnFail_9: number;
|
|
@@ -621,13 +623,6 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
621
623
|
export namespace workerConfig_9 {
|
|
622
624
|
let concurrency_9: number;
|
|
623
625
|
export { concurrency_9 as concurrency };
|
|
624
|
-
export namespace limiter_9 {
|
|
625
|
-
let max_9: number;
|
|
626
|
-
export { max_9 as max };
|
|
627
|
-
let duration_9: number;
|
|
628
|
-
export { duration_9 as duration };
|
|
629
|
-
}
|
|
630
|
-
export { limiter_9 as limiter };
|
|
631
626
|
}
|
|
632
627
|
export { workerConfig_9 as workerConfig };
|
|
633
628
|
}
|
package/dist/universal.js
CHANGED
|
@@ -461,7 +461,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
461
461
|
defaultJobOptions: {
|
|
462
462
|
backoff: {
|
|
463
463
|
type: "exponential",
|
|
464
|
-
delay:
|
|
464
|
+
delay: 4e3
|
|
465
465
|
},
|
|
466
466
|
attempts: 3,
|
|
467
467
|
removeOnComplete: 30,
|
|
@@ -491,7 +491,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
491
491
|
defaultJobOptions: {
|
|
492
492
|
backoff: {
|
|
493
493
|
type: "exponential",
|
|
494
|
-
delay:
|
|
494
|
+
delay: 4e3
|
|
495
495
|
},
|
|
496
496
|
attempts: 3,
|
|
497
497
|
removeOnComplete: 30,
|
|
@@ -668,7 +668,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
668
668
|
attempts: 3,
|
|
669
669
|
backoff: {
|
|
670
670
|
type: "exponential",
|
|
671
|
-
delay:
|
|
671
|
+
delay: 4e3
|
|
672
672
|
},
|
|
673
673
|
removeOnComplete: 30,
|
|
674
674
|
removeOnFail: 100
|
|
@@ -699,6 +699,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
699
699
|
type: "exponential",
|
|
700
700
|
delay: 2e3
|
|
701
701
|
},
|
|
702
|
+
delay: 4e3,
|
|
702
703
|
removeOnComplete: 30,
|
|
703
704
|
removeOnFail: 100
|
|
704
705
|
},
|
|
@@ -710,11 +711,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
710
711
|
}
|
|
711
712
|
},
|
|
712
713
|
workerConfig: {
|
|
713
|
-
concurrency: 1
|
|
714
|
-
limiter: {
|
|
715
|
-
max: 3,
|
|
716
|
-
duration: 6e4
|
|
717
|
-
}
|
|
714
|
+
concurrency: 1
|
|
718
715
|
}
|
|
719
716
|
}
|
|
720
717
|
};
|
package/dist/universal.mjs
CHANGED
|
@@ -425,7 +425,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
425
425
|
defaultJobOptions: {
|
|
426
426
|
backoff: {
|
|
427
427
|
type: "exponential",
|
|
428
|
-
delay:
|
|
428
|
+
delay: 4e3
|
|
429
429
|
},
|
|
430
430
|
attempts: 3,
|
|
431
431
|
removeOnComplete: 30,
|
|
@@ -455,7 +455,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
455
455
|
defaultJobOptions: {
|
|
456
456
|
backoff: {
|
|
457
457
|
type: "exponential",
|
|
458
|
-
delay:
|
|
458
|
+
delay: 4e3
|
|
459
459
|
},
|
|
460
460
|
attempts: 3,
|
|
461
461
|
removeOnComplete: 30,
|
|
@@ -632,7 +632,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
632
632
|
attempts: 3,
|
|
633
633
|
backoff: {
|
|
634
634
|
type: "exponential",
|
|
635
|
-
delay:
|
|
635
|
+
delay: 4e3
|
|
636
636
|
},
|
|
637
637
|
removeOnComplete: 30,
|
|
638
638
|
removeOnFail: 100
|
|
@@ -663,6 +663,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
663
663
|
type: "exponential",
|
|
664
664
|
delay: 2e3
|
|
665
665
|
},
|
|
666
|
+
delay: 4e3,
|
|
666
667
|
removeOnComplete: 30,
|
|
667
668
|
removeOnFail: 100
|
|
668
669
|
},
|
|
@@ -674,11 +675,7 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
674
675
|
}
|
|
675
676
|
},
|
|
676
677
|
workerConfig: {
|
|
677
|
-
concurrency: 1
|
|
678
|
-
limiter: {
|
|
679
|
-
max: 3,
|
|
680
|
-
duration: 6e4
|
|
681
|
-
}
|
|
678
|
+
concurrency: 1
|
|
682
679
|
}
|
|
683
680
|
}
|
|
684
681
|
};
|