@okf/ootils 1.13.0 → 1.15.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 +52 -0
- package/dist/browser.d.ts +52 -0
- package/dist/browser.js +42 -9
- package/dist/browser.mjs +42 -9
- package/dist/node.d.mts +52 -0
- package/dist/node.d.ts +52 -0
- package/dist/node.js +42 -9
- package/dist/node.mjs +42 -9
- package/dist/universal.d.mts +52 -0
- package/dist/universal.d.ts +52 -0
- package/dist/universal.js +42 -9
- package/dist/universal.mjs +42 -9
- package/package.json +1 -1
package/dist/browser.d.mts
CHANGED
|
@@ -280,6 +280,8 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
280
280
|
}
|
|
281
281
|
namespace workerConfig {
|
|
282
282
|
let concurrency: number;
|
|
283
|
+
let lockDuration: number;
|
|
284
|
+
let maxStalledCount: number;
|
|
283
285
|
namespace limiter {
|
|
284
286
|
let max: number;
|
|
285
287
|
let duration: number;
|
|
@@ -319,6 +321,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
319
321
|
export namespace workerConfig_1 {
|
|
320
322
|
let concurrency_1: number;
|
|
321
323
|
export { concurrency_1 as concurrency };
|
|
324
|
+
let lockDuration_1: number;
|
|
325
|
+
export { lockDuration_1 as lockDuration };
|
|
326
|
+
let maxStalledCount_1: number;
|
|
327
|
+
export { maxStalledCount_1 as maxStalledCount };
|
|
322
328
|
}
|
|
323
329
|
export { workerConfig_1 as workerConfig };
|
|
324
330
|
}
|
|
@@ -355,6 +361,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
355
361
|
export namespace workerConfig_2 {
|
|
356
362
|
let concurrency_2: number;
|
|
357
363
|
export { concurrency_2 as concurrency };
|
|
364
|
+
let lockDuration_2: number;
|
|
365
|
+
export { lockDuration_2 as lockDuration };
|
|
366
|
+
let maxStalledCount_2: number;
|
|
367
|
+
export { maxStalledCount_2 as maxStalledCount };
|
|
358
368
|
}
|
|
359
369
|
export { workerConfig_2 as workerConfig };
|
|
360
370
|
}
|
|
@@ -391,6 +401,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
391
401
|
export namespace workerConfig_3 {
|
|
392
402
|
let concurrency_3: number;
|
|
393
403
|
export { concurrency_3 as concurrency };
|
|
404
|
+
let lockDuration_3: number;
|
|
405
|
+
export { lockDuration_3 as lockDuration };
|
|
406
|
+
let maxStalledCount_3: number;
|
|
407
|
+
export { maxStalledCount_3 as maxStalledCount };
|
|
394
408
|
}
|
|
395
409
|
export { workerConfig_3 as workerConfig };
|
|
396
410
|
}
|
|
@@ -427,6 +441,17 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
427
441
|
export namespace workerConfig_4 {
|
|
428
442
|
let concurrency_4: number;
|
|
429
443
|
export { concurrency_4 as concurrency };
|
|
444
|
+
let lockDuration_4: number;
|
|
445
|
+
export { lockDuration_4 as lockDuration };
|
|
446
|
+
let maxStalledCount_4: number;
|
|
447
|
+
export { maxStalledCount_4 as maxStalledCount };
|
|
448
|
+
export namespace limiter_1 {
|
|
449
|
+
let max_1: number;
|
|
450
|
+
export { max_1 as max };
|
|
451
|
+
let duration_1: number;
|
|
452
|
+
export { duration_1 as duration };
|
|
453
|
+
}
|
|
454
|
+
export { limiter_1 as limiter };
|
|
430
455
|
}
|
|
431
456
|
export { workerConfig_4 as workerConfig };
|
|
432
457
|
}
|
|
@@ -463,6 +488,17 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
463
488
|
export namespace workerConfig_5 {
|
|
464
489
|
let concurrency_5: number;
|
|
465
490
|
export { concurrency_5 as concurrency };
|
|
491
|
+
let lockDuration_5: number;
|
|
492
|
+
export { lockDuration_5 as lockDuration };
|
|
493
|
+
let maxStalledCount_5: number;
|
|
494
|
+
export { maxStalledCount_5 as maxStalledCount };
|
|
495
|
+
export namespace limiter_2 {
|
|
496
|
+
let max_2: number;
|
|
497
|
+
export { max_2 as max };
|
|
498
|
+
let duration_2: number;
|
|
499
|
+
export { duration_2 as duration };
|
|
500
|
+
}
|
|
501
|
+
export { limiter_2 as limiter };
|
|
466
502
|
}
|
|
467
503
|
export { workerConfig_5 as workerConfig };
|
|
468
504
|
}
|
|
@@ -499,6 +535,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
499
535
|
export namespace workerConfig_6 {
|
|
500
536
|
let concurrency_6: number;
|
|
501
537
|
export { concurrency_6 as concurrency };
|
|
538
|
+
let lockDuration_6: number;
|
|
539
|
+
export { lockDuration_6 as lockDuration };
|
|
540
|
+
let maxStalledCount_6: number;
|
|
541
|
+
export { maxStalledCount_6 as maxStalledCount };
|
|
502
542
|
}
|
|
503
543
|
export { workerConfig_6 as workerConfig };
|
|
504
544
|
}
|
|
@@ -535,6 +575,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
535
575
|
export namespace workerConfig_7 {
|
|
536
576
|
let concurrency_7: number;
|
|
537
577
|
export { concurrency_7 as concurrency };
|
|
578
|
+
let lockDuration_7: number;
|
|
579
|
+
export { lockDuration_7 as lockDuration };
|
|
580
|
+
let maxStalledCount_7: number;
|
|
581
|
+
export { maxStalledCount_7 as maxStalledCount };
|
|
538
582
|
}
|
|
539
583
|
export { workerConfig_7 as workerConfig };
|
|
540
584
|
}
|
|
@@ -571,6 +615,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
571
615
|
export namespace workerConfig_8 {
|
|
572
616
|
let concurrency_8: number;
|
|
573
617
|
export { concurrency_8 as concurrency };
|
|
618
|
+
let lockDuration_8: number;
|
|
619
|
+
export { lockDuration_8 as lockDuration };
|
|
620
|
+
let maxStalledCount_8: number;
|
|
621
|
+
export { maxStalledCount_8 as maxStalledCount };
|
|
574
622
|
}
|
|
575
623
|
export { workerConfig_8 as workerConfig };
|
|
576
624
|
}
|
|
@@ -609,6 +657,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
609
657
|
export namespace workerConfig_9 {
|
|
610
658
|
let concurrency_9: number;
|
|
611
659
|
export { concurrency_9 as concurrency };
|
|
660
|
+
let lockDuration_9: number;
|
|
661
|
+
export { lockDuration_9 as lockDuration };
|
|
662
|
+
let maxStalledCount_9: number;
|
|
663
|
+
export { maxStalledCount_9 as maxStalledCount };
|
|
612
664
|
}
|
|
613
665
|
export { workerConfig_9 as workerConfig };
|
|
614
666
|
}
|
package/dist/browser.d.ts
CHANGED
|
@@ -280,6 +280,8 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
280
280
|
}
|
|
281
281
|
namespace workerConfig {
|
|
282
282
|
let concurrency: number;
|
|
283
|
+
let lockDuration: number;
|
|
284
|
+
let maxStalledCount: number;
|
|
283
285
|
namespace limiter {
|
|
284
286
|
let max: number;
|
|
285
287
|
let duration: number;
|
|
@@ -319,6 +321,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
319
321
|
export namespace workerConfig_1 {
|
|
320
322
|
let concurrency_1: number;
|
|
321
323
|
export { concurrency_1 as concurrency };
|
|
324
|
+
let lockDuration_1: number;
|
|
325
|
+
export { lockDuration_1 as lockDuration };
|
|
326
|
+
let maxStalledCount_1: number;
|
|
327
|
+
export { maxStalledCount_1 as maxStalledCount };
|
|
322
328
|
}
|
|
323
329
|
export { workerConfig_1 as workerConfig };
|
|
324
330
|
}
|
|
@@ -355,6 +361,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
355
361
|
export namespace workerConfig_2 {
|
|
356
362
|
let concurrency_2: number;
|
|
357
363
|
export { concurrency_2 as concurrency };
|
|
364
|
+
let lockDuration_2: number;
|
|
365
|
+
export { lockDuration_2 as lockDuration };
|
|
366
|
+
let maxStalledCount_2: number;
|
|
367
|
+
export { maxStalledCount_2 as maxStalledCount };
|
|
358
368
|
}
|
|
359
369
|
export { workerConfig_2 as workerConfig };
|
|
360
370
|
}
|
|
@@ -391,6 +401,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
391
401
|
export namespace workerConfig_3 {
|
|
392
402
|
let concurrency_3: number;
|
|
393
403
|
export { concurrency_3 as concurrency };
|
|
404
|
+
let lockDuration_3: number;
|
|
405
|
+
export { lockDuration_3 as lockDuration };
|
|
406
|
+
let maxStalledCount_3: number;
|
|
407
|
+
export { maxStalledCount_3 as maxStalledCount };
|
|
394
408
|
}
|
|
395
409
|
export { workerConfig_3 as workerConfig };
|
|
396
410
|
}
|
|
@@ -427,6 +441,17 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
427
441
|
export namespace workerConfig_4 {
|
|
428
442
|
let concurrency_4: number;
|
|
429
443
|
export { concurrency_4 as concurrency };
|
|
444
|
+
let lockDuration_4: number;
|
|
445
|
+
export { lockDuration_4 as lockDuration };
|
|
446
|
+
let maxStalledCount_4: number;
|
|
447
|
+
export { maxStalledCount_4 as maxStalledCount };
|
|
448
|
+
export namespace limiter_1 {
|
|
449
|
+
let max_1: number;
|
|
450
|
+
export { max_1 as max };
|
|
451
|
+
let duration_1: number;
|
|
452
|
+
export { duration_1 as duration };
|
|
453
|
+
}
|
|
454
|
+
export { limiter_1 as limiter };
|
|
430
455
|
}
|
|
431
456
|
export { workerConfig_4 as workerConfig };
|
|
432
457
|
}
|
|
@@ -463,6 +488,17 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
463
488
|
export namespace workerConfig_5 {
|
|
464
489
|
let concurrency_5: number;
|
|
465
490
|
export { concurrency_5 as concurrency };
|
|
491
|
+
let lockDuration_5: number;
|
|
492
|
+
export { lockDuration_5 as lockDuration };
|
|
493
|
+
let maxStalledCount_5: number;
|
|
494
|
+
export { maxStalledCount_5 as maxStalledCount };
|
|
495
|
+
export namespace limiter_2 {
|
|
496
|
+
let max_2: number;
|
|
497
|
+
export { max_2 as max };
|
|
498
|
+
let duration_2: number;
|
|
499
|
+
export { duration_2 as duration };
|
|
500
|
+
}
|
|
501
|
+
export { limiter_2 as limiter };
|
|
466
502
|
}
|
|
467
503
|
export { workerConfig_5 as workerConfig };
|
|
468
504
|
}
|
|
@@ -499,6 +535,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
499
535
|
export namespace workerConfig_6 {
|
|
500
536
|
let concurrency_6: number;
|
|
501
537
|
export { concurrency_6 as concurrency };
|
|
538
|
+
let lockDuration_6: number;
|
|
539
|
+
export { lockDuration_6 as lockDuration };
|
|
540
|
+
let maxStalledCount_6: number;
|
|
541
|
+
export { maxStalledCount_6 as maxStalledCount };
|
|
502
542
|
}
|
|
503
543
|
export { workerConfig_6 as workerConfig };
|
|
504
544
|
}
|
|
@@ -535,6 +575,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
535
575
|
export namespace workerConfig_7 {
|
|
536
576
|
let concurrency_7: number;
|
|
537
577
|
export { concurrency_7 as concurrency };
|
|
578
|
+
let lockDuration_7: number;
|
|
579
|
+
export { lockDuration_7 as lockDuration };
|
|
580
|
+
let maxStalledCount_7: number;
|
|
581
|
+
export { maxStalledCount_7 as maxStalledCount };
|
|
538
582
|
}
|
|
539
583
|
export { workerConfig_7 as workerConfig };
|
|
540
584
|
}
|
|
@@ -571,6 +615,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
571
615
|
export namespace workerConfig_8 {
|
|
572
616
|
let concurrency_8: number;
|
|
573
617
|
export { concurrency_8 as concurrency };
|
|
618
|
+
let lockDuration_8: number;
|
|
619
|
+
export { lockDuration_8 as lockDuration };
|
|
620
|
+
let maxStalledCount_8: number;
|
|
621
|
+
export { maxStalledCount_8 as maxStalledCount };
|
|
574
622
|
}
|
|
575
623
|
export { workerConfig_8 as workerConfig };
|
|
576
624
|
}
|
|
@@ -609,6 +657,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
609
657
|
export namespace workerConfig_9 {
|
|
610
658
|
let concurrency_9: number;
|
|
611
659
|
export { concurrency_9 as concurrency };
|
|
660
|
+
let lockDuration_9: number;
|
|
661
|
+
export { lockDuration_9 as lockDuration };
|
|
662
|
+
let maxStalledCount_9: number;
|
|
663
|
+
export { maxStalledCount_9 as maxStalledCount };
|
|
612
664
|
}
|
|
613
665
|
export { workerConfig_9 as workerConfig };
|
|
614
666
|
}
|
package/dist/browser.js
CHANGED
|
@@ -448,6 +448,8 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
448
448
|
workerConfig: {
|
|
449
449
|
concurrency: 1,
|
|
450
450
|
// Process jobs one at a time to avoid race conditions
|
|
451
|
+
lockDuration: 9e4,
|
|
452
|
+
maxStalledCount: 3,
|
|
451
453
|
limiter: {
|
|
452
454
|
max: 5,
|
|
453
455
|
// Max 10 jobs per...
|
|
@@ -477,7 +479,9 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
477
479
|
}
|
|
478
480
|
},
|
|
479
481
|
workerConfig: {
|
|
480
|
-
concurrency: 200
|
|
482
|
+
concurrency: 200,
|
|
483
|
+
lockDuration: 9e4,
|
|
484
|
+
maxStalledCount: 3
|
|
481
485
|
}
|
|
482
486
|
},
|
|
483
487
|
CREATE_ANNOS_QUEUE: {
|
|
@@ -500,7 +504,9 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
500
504
|
}
|
|
501
505
|
},
|
|
502
506
|
workerConfig: {
|
|
503
|
-
concurrency: 200
|
|
507
|
+
concurrency: 200,
|
|
508
|
+
lockDuration: 9e4,
|
|
509
|
+
maxStalledCount: 3
|
|
504
510
|
}
|
|
505
511
|
},
|
|
506
512
|
CONTENT_ENHANCE_AND_EMBED_QUEUE: {
|
|
@@ -523,7 +529,9 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
523
529
|
}
|
|
524
530
|
},
|
|
525
531
|
workerConfig: {
|
|
526
|
-
concurrency: 200
|
|
532
|
+
concurrency: 200,
|
|
533
|
+
lockDuration: 9e4,
|
|
534
|
+
maxStalledCount: 3
|
|
527
535
|
}
|
|
528
536
|
},
|
|
529
537
|
DIRECT_DATA_IMPORT_QUEUE: {
|
|
@@ -546,7 +554,16 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
546
554
|
}
|
|
547
555
|
},
|
|
548
556
|
workerConfig: {
|
|
549
|
-
concurrency: 1
|
|
557
|
+
concurrency: 1,
|
|
558
|
+
// Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
|
|
559
|
+
lockDuration: 9e4,
|
|
560
|
+
maxStalledCount: 3,
|
|
561
|
+
limiter: {
|
|
562
|
+
max: 20,
|
|
563
|
+
// Max 5 jobs per...
|
|
564
|
+
duration: 6e4
|
|
565
|
+
// ...60 seconds (higher throughput for chunking)
|
|
566
|
+
}
|
|
550
567
|
}
|
|
551
568
|
},
|
|
552
569
|
AI_CATEGORIZE_QUEUE: {
|
|
@@ -569,7 +586,15 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
569
586
|
}
|
|
570
587
|
},
|
|
571
588
|
workerConfig: {
|
|
572
|
-
concurrency:
|
|
589
|
+
concurrency: 1,
|
|
590
|
+
lockDuration: 9e4,
|
|
591
|
+
maxStalledCount: 3,
|
|
592
|
+
limiter: {
|
|
593
|
+
max: 100,
|
|
594
|
+
// (lets always keep this same as content enhance & embed since it comes immediately after)
|
|
595
|
+
duration: 6e4
|
|
596
|
+
// ...60 seconds (higher throughput for chunking)
|
|
597
|
+
}
|
|
573
598
|
}
|
|
574
599
|
},
|
|
575
600
|
ANNOS_ELASTIC_SYNC_QUEUE: {
|
|
@@ -592,7 +617,9 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
592
617
|
}
|
|
593
618
|
},
|
|
594
619
|
workerConfig: {
|
|
595
|
-
concurrency: 200
|
|
620
|
+
concurrency: 200,
|
|
621
|
+
lockDuration: 9e4,
|
|
622
|
+
maxStalledCount: 3
|
|
596
623
|
}
|
|
597
624
|
},
|
|
598
625
|
CHUNKS_ELASTIC_SYNC_QUEUE: {
|
|
@@ -615,7 +642,9 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
615
642
|
}
|
|
616
643
|
},
|
|
617
644
|
workerConfig: {
|
|
618
|
-
concurrency: 200
|
|
645
|
+
concurrency: 200,
|
|
646
|
+
lockDuration: 9e4,
|
|
647
|
+
maxStalledCount: 3
|
|
619
648
|
}
|
|
620
649
|
},
|
|
621
650
|
CONTENT_ELASTIC_SYNC_QUEUE: {
|
|
@@ -638,7 +667,9 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
638
667
|
}
|
|
639
668
|
},
|
|
640
669
|
workerConfig: {
|
|
641
|
-
concurrency: 200
|
|
670
|
+
concurrency: 200,
|
|
671
|
+
lockDuration: 9e4,
|
|
672
|
+
maxStalledCount: 3
|
|
642
673
|
}
|
|
643
674
|
},
|
|
644
675
|
REINDEX_QUEUE: {
|
|
@@ -662,7 +693,9 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
662
693
|
}
|
|
663
694
|
},
|
|
664
695
|
workerConfig: {
|
|
665
|
-
concurrency: 1
|
|
696
|
+
concurrency: 1,
|
|
697
|
+
lockDuration: 9e4,
|
|
698
|
+
maxStalledCount: 3
|
|
666
699
|
}
|
|
667
700
|
}
|
|
668
701
|
};
|
package/dist/browser.mjs
CHANGED
|
@@ -412,6 +412,8 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
412
412
|
workerConfig: {
|
|
413
413
|
concurrency: 1,
|
|
414
414
|
// Process jobs one at a time to avoid race conditions
|
|
415
|
+
lockDuration: 9e4,
|
|
416
|
+
maxStalledCount: 3,
|
|
415
417
|
limiter: {
|
|
416
418
|
max: 5,
|
|
417
419
|
// Max 10 jobs per...
|
|
@@ -441,7 +443,9 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
441
443
|
}
|
|
442
444
|
},
|
|
443
445
|
workerConfig: {
|
|
444
|
-
concurrency: 200
|
|
446
|
+
concurrency: 200,
|
|
447
|
+
lockDuration: 9e4,
|
|
448
|
+
maxStalledCount: 3
|
|
445
449
|
}
|
|
446
450
|
},
|
|
447
451
|
CREATE_ANNOS_QUEUE: {
|
|
@@ -464,7 +468,9 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
464
468
|
}
|
|
465
469
|
},
|
|
466
470
|
workerConfig: {
|
|
467
|
-
concurrency: 200
|
|
471
|
+
concurrency: 200,
|
|
472
|
+
lockDuration: 9e4,
|
|
473
|
+
maxStalledCount: 3
|
|
468
474
|
}
|
|
469
475
|
},
|
|
470
476
|
CONTENT_ENHANCE_AND_EMBED_QUEUE: {
|
|
@@ -487,7 +493,9 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
487
493
|
}
|
|
488
494
|
},
|
|
489
495
|
workerConfig: {
|
|
490
|
-
concurrency: 200
|
|
496
|
+
concurrency: 200,
|
|
497
|
+
lockDuration: 9e4,
|
|
498
|
+
maxStalledCount: 3
|
|
491
499
|
}
|
|
492
500
|
},
|
|
493
501
|
DIRECT_DATA_IMPORT_QUEUE: {
|
|
@@ -510,7 +518,16 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
510
518
|
}
|
|
511
519
|
},
|
|
512
520
|
workerConfig: {
|
|
513
|
-
concurrency: 1
|
|
521
|
+
concurrency: 1,
|
|
522
|
+
// Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
|
|
523
|
+
lockDuration: 9e4,
|
|
524
|
+
maxStalledCount: 3,
|
|
525
|
+
limiter: {
|
|
526
|
+
max: 20,
|
|
527
|
+
// Max 5 jobs per...
|
|
528
|
+
duration: 6e4
|
|
529
|
+
// ...60 seconds (higher throughput for chunking)
|
|
530
|
+
}
|
|
514
531
|
}
|
|
515
532
|
},
|
|
516
533
|
AI_CATEGORIZE_QUEUE: {
|
|
@@ -533,7 +550,15 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
533
550
|
}
|
|
534
551
|
},
|
|
535
552
|
workerConfig: {
|
|
536
|
-
concurrency:
|
|
553
|
+
concurrency: 1,
|
|
554
|
+
lockDuration: 9e4,
|
|
555
|
+
maxStalledCount: 3,
|
|
556
|
+
limiter: {
|
|
557
|
+
max: 100,
|
|
558
|
+
// (lets always keep this same as content enhance & embed since it comes immediately after)
|
|
559
|
+
duration: 6e4
|
|
560
|
+
// ...60 seconds (higher throughput for chunking)
|
|
561
|
+
}
|
|
537
562
|
}
|
|
538
563
|
},
|
|
539
564
|
ANNOS_ELASTIC_SYNC_QUEUE: {
|
|
@@ -556,7 +581,9 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
556
581
|
}
|
|
557
582
|
},
|
|
558
583
|
workerConfig: {
|
|
559
|
-
concurrency: 200
|
|
584
|
+
concurrency: 200,
|
|
585
|
+
lockDuration: 9e4,
|
|
586
|
+
maxStalledCount: 3
|
|
560
587
|
}
|
|
561
588
|
},
|
|
562
589
|
CHUNKS_ELASTIC_SYNC_QUEUE: {
|
|
@@ -579,7 +606,9 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
579
606
|
}
|
|
580
607
|
},
|
|
581
608
|
workerConfig: {
|
|
582
|
-
concurrency: 200
|
|
609
|
+
concurrency: 200,
|
|
610
|
+
lockDuration: 9e4,
|
|
611
|
+
maxStalledCount: 3
|
|
583
612
|
}
|
|
584
613
|
},
|
|
585
614
|
CONTENT_ELASTIC_SYNC_QUEUE: {
|
|
@@ -602,7 +631,9 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
602
631
|
}
|
|
603
632
|
},
|
|
604
633
|
workerConfig: {
|
|
605
|
-
concurrency: 200
|
|
634
|
+
concurrency: 200,
|
|
635
|
+
lockDuration: 9e4,
|
|
636
|
+
maxStalledCount: 3
|
|
606
637
|
}
|
|
607
638
|
},
|
|
608
639
|
REINDEX_QUEUE: {
|
|
@@ -626,7 +657,9 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
626
657
|
}
|
|
627
658
|
},
|
|
628
659
|
workerConfig: {
|
|
629
|
-
concurrency: 1
|
|
660
|
+
concurrency: 1,
|
|
661
|
+
lockDuration: 9e4,
|
|
662
|
+
maxStalledCount: 3
|
|
630
663
|
}
|
|
631
664
|
}
|
|
632
665
|
};
|
package/dist/node.d.mts
CHANGED
|
@@ -287,6 +287,8 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
287
287
|
}
|
|
288
288
|
namespace workerConfig {
|
|
289
289
|
let concurrency: number;
|
|
290
|
+
let lockDuration: number;
|
|
291
|
+
let maxStalledCount: number;
|
|
290
292
|
namespace limiter {
|
|
291
293
|
let max: number;
|
|
292
294
|
let duration: number;
|
|
@@ -326,6 +328,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
326
328
|
export namespace workerConfig_1 {
|
|
327
329
|
let concurrency_1: number;
|
|
328
330
|
export { concurrency_1 as concurrency };
|
|
331
|
+
let lockDuration_1: number;
|
|
332
|
+
export { lockDuration_1 as lockDuration };
|
|
333
|
+
let maxStalledCount_1: number;
|
|
334
|
+
export { maxStalledCount_1 as maxStalledCount };
|
|
329
335
|
}
|
|
330
336
|
export { workerConfig_1 as workerConfig };
|
|
331
337
|
}
|
|
@@ -362,6 +368,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
362
368
|
export namespace workerConfig_2 {
|
|
363
369
|
let concurrency_2: number;
|
|
364
370
|
export { concurrency_2 as concurrency };
|
|
371
|
+
let lockDuration_2: number;
|
|
372
|
+
export { lockDuration_2 as lockDuration };
|
|
373
|
+
let maxStalledCount_2: number;
|
|
374
|
+
export { maxStalledCount_2 as maxStalledCount };
|
|
365
375
|
}
|
|
366
376
|
export { workerConfig_2 as workerConfig };
|
|
367
377
|
}
|
|
@@ -398,6 +408,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
398
408
|
export namespace workerConfig_3 {
|
|
399
409
|
let concurrency_3: number;
|
|
400
410
|
export { concurrency_3 as concurrency };
|
|
411
|
+
let lockDuration_3: number;
|
|
412
|
+
export { lockDuration_3 as lockDuration };
|
|
413
|
+
let maxStalledCount_3: number;
|
|
414
|
+
export { maxStalledCount_3 as maxStalledCount };
|
|
401
415
|
}
|
|
402
416
|
export { workerConfig_3 as workerConfig };
|
|
403
417
|
}
|
|
@@ -434,6 +448,17 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
434
448
|
export namespace workerConfig_4 {
|
|
435
449
|
let concurrency_4: number;
|
|
436
450
|
export { concurrency_4 as concurrency };
|
|
451
|
+
let lockDuration_4: number;
|
|
452
|
+
export { lockDuration_4 as lockDuration };
|
|
453
|
+
let maxStalledCount_4: number;
|
|
454
|
+
export { maxStalledCount_4 as maxStalledCount };
|
|
455
|
+
export namespace limiter_1 {
|
|
456
|
+
let max_1: number;
|
|
457
|
+
export { max_1 as max };
|
|
458
|
+
let duration_1: number;
|
|
459
|
+
export { duration_1 as duration };
|
|
460
|
+
}
|
|
461
|
+
export { limiter_1 as limiter };
|
|
437
462
|
}
|
|
438
463
|
export { workerConfig_4 as workerConfig };
|
|
439
464
|
}
|
|
@@ -470,6 +495,17 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
470
495
|
export namespace workerConfig_5 {
|
|
471
496
|
let concurrency_5: number;
|
|
472
497
|
export { concurrency_5 as concurrency };
|
|
498
|
+
let lockDuration_5: number;
|
|
499
|
+
export { lockDuration_5 as lockDuration };
|
|
500
|
+
let maxStalledCount_5: number;
|
|
501
|
+
export { maxStalledCount_5 as maxStalledCount };
|
|
502
|
+
export namespace limiter_2 {
|
|
503
|
+
let max_2: number;
|
|
504
|
+
export { max_2 as max };
|
|
505
|
+
let duration_2: number;
|
|
506
|
+
export { duration_2 as duration };
|
|
507
|
+
}
|
|
508
|
+
export { limiter_2 as limiter };
|
|
473
509
|
}
|
|
474
510
|
export { workerConfig_5 as workerConfig };
|
|
475
511
|
}
|
|
@@ -506,6 +542,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
506
542
|
export namespace workerConfig_6 {
|
|
507
543
|
let concurrency_6: number;
|
|
508
544
|
export { concurrency_6 as concurrency };
|
|
545
|
+
let lockDuration_6: number;
|
|
546
|
+
export { lockDuration_6 as lockDuration };
|
|
547
|
+
let maxStalledCount_6: number;
|
|
548
|
+
export { maxStalledCount_6 as maxStalledCount };
|
|
509
549
|
}
|
|
510
550
|
export { workerConfig_6 as workerConfig };
|
|
511
551
|
}
|
|
@@ -542,6 +582,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
542
582
|
export namespace workerConfig_7 {
|
|
543
583
|
let concurrency_7: number;
|
|
544
584
|
export { concurrency_7 as concurrency };
|
|
585
|
+
let lockDuration_7: number;
|
|
586
|
+
export { lockDuration_7 as lockDuration };
|
|
587
|
+
let maxStalledCount_7: number;
|
|
588
|
+
export { maxStalledCount_7 as maxStalledCount };
|
|
545
589
|
}
|
|
546
590
|
export { workerConfig_7 as workerConfig };
|
|
547
591
|
}
|
|
@@ -578,6 +622,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
578
622
|
export namespace workerConfig_8 {
|
|
579
623
|
let concurrency_8: number;
|
|
580
624
|
export { concurrency_8 as concurrency };
|
|
625
|
+
let lockDuration_8: number;
|
|
626
|
+
export { lockDuration_8 as lockDuration };
|
|
627
|
+
let maxStalledCount_8: number;
|
|
628
|
+
export { maxStalledCount_8 as maxStalledCount };
|
|
581
629
|
}
|
|
582
630
|
export { workerConfig_8 as workerConfig };
|
|
583
631
|
}
|
|
@@ -616,6 +664,10 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
616
664
|
export namespace workerConfig_9 {
|
|
617
665
|
let concurrency_9: number;
|
|
618
666
|
export { concurrency_9 as concurrency };
|
|
667
|
+
let lockDuration_9: number;
|
|
668
|
+
export { lockDuration_9 as lockDuration };
|
|
669
|
+
let maxStalledCount_9: number;
|
|
670
|
+
export { maxStalledCount_9 as maxStalledCount };
|
|
619
671
|
}
|
|
620
672
|
export { workerConfig_9 as workerConfig };
|
|
621
673
|
}
|