@okf/ootils 1.14.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.
@@ -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,13 +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 };
322
- export namespace limiter_1 {
323
- let max_1: number;
324
- export { max_1 as max };
325
- let duration_1: number;
326
- export { duration_1 as duration };
327
- }
328
- export { limiter_1 as limiter };
324
+ let lockDuration_1: number;
325
+ export { lockDuration_1 as lockDuration };
326
+ let maxStalledCount_1: number;
327
+ export { maxStalledCount_1 as maxStalledCount };
329
328
  }
330
329
  export { workerConfig_1 as workerConfig };
331
330
  }
@@ -362,13 +361,10 @@ declare namespace BASE_BULLMQ_CONFIG {
362
361
  export namespace workerConfig_2 {
363
362
  let concurrency_2: number;
364
363
  export { concurrency_2 as concurrency };
365
- export namespace limiter_2 {
366
- let max_2: number;
367
- export { max_2 as max };
368
- let duration_2: number;
369
- export { duration_2 as duration };
370
- }
371
- export { limiter_2 as limiter };
364
+ let lockDuration_2: number;
365
+ export { lockDuration_2 as lockDuration };
366
+ let maxStalledCount_2: number;
367
+ export { maxStalledCount_2 as maxStalledCount };
372
368
  }
373
369
  export { workerConfig_2 as workerConfig };
374
370
  }
@@ -405,13 +401,10 @@ declare namespace BASE_BULLMQ_CONFIG {
405
401
  export namespace workerConfig_3 {
406
402
  let concurrency_3: number;
407
403
  export { concurrency_3 as concurrency };
408
- export namespace limiter_3 {
409
- let max_3: number;
410
- export { max_3 as max };
411
- let duration_3: number;
412
- export { duration_3 as duration };
413
- }
414
- export { limiter_3 as limiter };
404
+ let lockDuration_3: number;
405
+ export { lockDuration_3 as lockDuration };
406
+ let maxStalledCount_3: number;
407
+ export { maxStalledCount_3 as maxStalledCount };
415
408
  }
416
409
  export { workerConfig_3 as workerConfig };
417
410
  }
@@ -448,13 +441,17 @@ declare namespace BASE_BULLMQ_CONFIG {
448
441
  export namespace workerConfig_4 {
449
442
  let concurrency_4: number;
450
443
  export { concurrency_4 as concurrency };
451
- export namespace limiter_4 {
452
- let max_4: number;
453
- export { max_4 as max };
454
- let duration_4: number;
455
- export { duration_4 as duration };
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 };
456
453
  }
457
- export { limiter_4 as limiter };
454
+ export { limiter_1 as limiter };
458
455
  }
459
456
  export { workerConfig_4 as workerConfig };
460
457
  }
@@ -491,13 +488,17 @@ declare namespace BASE_BULLMQ_CONFIG {
491
488
  export namespace workerConfig_5 {
492
489
  let concurrency_5: number;
493
490
  export { concurrency_5 as concurrency };
494
- export namespace limiter_5 {
495
- let max_5: number;
496
- export { max_5 as max };
497
- let duration_5: number;
498
- export { duration_5 as duration };
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 };
499
500
  }
500
- export { limiter_5 as limiter };
501
+ export { limiter_2 as limiter };
501
502
  }
502
503
  export { workerConfig_5 as workerConfig };
503
504
  }
@@ -534,13 +535,10 @@ declare namespace BASE_BULLMQ_CONFIG {
534
535
  export namespace workerConfig_6 {
535
536
  let concurrency_6: number;
536
537
  export { concurrency_6 as concurrency };
537
- export namespace limiter_6 {
538
- let max_6: number;
539
- export { max_6 as max };
540
- let duration_6: number;
541
- export { duration_6 as duration };
542
- }
543
- export { limiter_6 as limiter };
538
+ let lockDuration_6: number;
539
+ export { lockDuration_6 as lockDuration };
540
+ let maxStalledCount_6: number;
541
+ export { maxStalledCount_6 as maxStalledCount };
544
542
  }
545
543
  export { workerConfig_6 as workerConfig };
546
544
  }
@@ -577,13 +575,10 @@ declare namespace BASE_BULLMQ_CONFIG {
577
575
  export namespace workerConfig_7 {
578
576
  let concurrency_7: number;
579
577
  export { concurrency_7 as concurrency };
580
- export namespace limiter_7 {
581
- let max_7: number;
582
- export { max_7 as max };
583
- let duration_7: number;
584
- export { duration_7 as duration };
585
- }
586
- export { limiter_7 as limiter };
578
+ let lockDuration_7: number;
579
+ export { lockDuration_7 as lockDuration };
580
+ let maxStalledCount_7: number;
581
+ export { maxStalledCount_7 as maxStalledCount };
587
582
  }
588
583
  export { workerConfig_7 as workerConfig };
589
584
  }
@@ -620,13 +615,10 @@ declare namespace BASE_BULLMQ_CONFIG {
620
615
  export namespace workerConfig_8 {
621
616
  let concurrency_8: number;
622
617
  export { concurrency_8 as concurrency };
623
- export namespace limiter_8 {
624
- let max_8: number;
625
- export { max_8 as max };
626
- let duration_8: number;
627
- export { duration_8 as duration };
628
- }
629
- export { limiter_8 as limiter };
618
+ let lockDuration_8: number;
619
+ export { lockDuration_8 as lockDuration };
620
+ let maxStalledCount_8: number;
621
+ export { maxStalledCount_8 as maxStalledCount };
630
622
  }
631
623
  export { workerConfig_8 as workerConfig };
632
624
  }
@@ -665,6 +657,10 @@ declare namespace BASE_BULLMQ_CONFIG {
665
657
  export namespace workerConfig_9 {
666
658
  let concurrency_9: number;
667
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 };
668
664
  }
669
665
  export { workerConfig_9 as workerConfig };
670
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,13 +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 };
322
- export namespace limiter_1 {
323
- let max_1: number;
324
- export { max_1 as max };
325
- let duration_1: number;
326
- export { duration_1 as duration };
327
- }
328
- export { limiter_1 as limiter };
324
+ let lockDuration_1: number;
325
+ export { lockDuration_1 as lockDuration };
326
+ let maxStalledCount_1: number;
327
+ export { maxStalledCount_1 as maxStalledCount };
329
328
  }
330
329
  export { workerConfig_1 as workerConfig };
331
330
  }
@@ -362,13 +361,10 @@ declare namespace BASE_BULLMQ_CONFIG {
362
361
  export namespace workerConfig_2 {
363
362
  let concurrency_2: number;
364
363
  export { concurrency_2 as concurrency };
365
- export namespace limiter_2 {
366
- let max_2: number;
367
- export { max_2 as max };
368
- let duration_2: number;
369
- export { duration_2 as duration };
370
- }
371
- export { limiter_2 as limiter };
364
+ let lockDuration_2: number;
365
+ export { lockDuration_2 as lockDuration };
366
+ let maxStalledCount_2: number;
367
+ export { maxStalledCount_2 as maxStalledCount };
372
368
  }
373
369
  export { workerConfig_2 as workerConfig };
374
370
  }
@@ -405,13 +401,10 @@ declare namespace BASE_BULLMQ_CONFIG {
405
401
  export namespace workerConfig_3 {
406
402
  let concurrency_3: number;
407
403
  export { concurrency_3 as concurrency };
408
- export namespace limiter_3 {
409
- let max_3: number;
410
- export { max_3 as max };
411
- let duration_3: number;
412
- export { duration_3 as duration };
413
- }
414
- export { limiter_3 as limiter };
404
+ let lockDuration_3: number;
405
+ export { lockDuration_3 as lockDuration };
406
+ let maxStalledCount_3: number;
407
+ export { maxStalledCount_3 as maxStalledCount };
415
408
  }
416
409
  export { workerConfig_3 as workerConfig };
417
410
  }
@@ -448,13 +441,17 @@ declare namespace BASE_BULLMQ_CONFIG {
448
441
  export namespace workerConfig_4 {
449
442
  let concurrency_4: number;
450
443
  export { concurrency_4 as concurrency };
451
- export namespace limiter_4 {
452
- let max_4: number;
453
- export { max_4 as max };
454
- let duration_4: number;
455
- export { duration_4 as duration };
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 };
456
453
  }
457
- export { limiter_4 as limiter };
454
+ export { limiter_1 as limiter };
458
455
  }
459
456
  export { workerConfig_4 as workerConfig };
460
457
  }
@@ -491,13 +488,17 @@ declare namespace BASE_BULLMQ_CONFIG {
491
488
  export namespace workerConfig_5 {
492
489
  let concurrency_5: number;
493
490
  export { concurrency_5 as concurrency };
494
- export namespace limiter_5 {
495
- let max_5: number;
496
- export { max_5 as max };
497
- let duration_5: number;
498
- export { duration_5 as duration };
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 };
499
500
  }
500
- export { limiter_5 as limiter };
501
+ export { limiter_2 as limiter };
501
502
  }
502
503
  export { workerConfig_5 as workerConfig };
503
504
  }
@@ -534,13 +535,10 @@ declare namespace BASE_BULLMQ_CONFIG {
534
535
  export namespace workerConfig_6 {
535
536
  let concurrency_6: number;
536
537
  export { concurrency_6 as concurrency };
537
- export namespace limiter_6 {
538
- let max_6: number;
539
- export { max_6 as max };
540
- let duration_6: number;
541
- export { duration_6 as duration };
542
- }
543
- export { limiter_6 as limiter };
538
+ let lockDuration_6: number;
539
+ export { lockDuration_6 as lockDuration };
540
+ let maxStalledCount_6: number;
541
+ export { maxStalledCount_6 as maxStalledCount };
544
542
  }
545
543
  export { workerConfig_6 as workerConfig };
546
544
  }
@@ -577,13 +575,10 @@ declare namespace BASE_BULLMQ_CONFIG {
577
575
  export namespace workerConfig_7 {
578
576
  let concurrency_7: number;
579
577
  export { concurrency_7 as concurrency };
580
- export namespace limiter_7 {
581
- let max_7: number;
582
- export { max_7 as max };
583
- let duration_7: number;
584
- export { duration_7 as duration };
585
- }
586
- export { limiter_7 as limiter };
578
+ let lockDuration_7: number;
579
+ export { lockDuration_7 as lockDuration };
580
+ let maxStalledCount_7: number;
581
+ export { maxStalledCount_7 as maxStalledCount };
587
582
  }
588
583
  export { workerConfig_7 as workerConfig };
589
584
  }
@@ -620,13 +615,10 @@ declare namespace BASE_BULLMQ_CONFIG {
620
615
  export namespace workerConfig_8 {
621
616
  let concurrency_8: number;
622
617
  export { concurrency_8 as concurrency };
623
- export namespace limiter_8 {
624
- let max_8: number;
625
- export { max_8 as max };
626
- let duration_8: number;
627
- export { duration_8 as duration };
628
- }
629
- export { limiter_8 as limiter };
618
+ let lockDuration_8: number;
619
+ export { lockDuration_8 as lockDuration };
620
+ let maxStalledCount_8: number;
621
+ export { maxStalledCount_8 as maxStalledCount };
630
622
  }
631
623
  export { workerConfig_8 as workerConfig };
632
624
  }
@@ -665,6 +657,10 @@ declare namespace BASE_BULLMQ_CONFIG {
665
657
  export namespace workerConfig_9 {
666
658
  let concurrency_9: number;
667
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 };
668
664
  }
669
665
  export { workerConfig_9 as workerConfig };
670
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,14 +479,9 @@ var BASE_BULLMQ_CONFIG = {
477
479
  }
478
480
  },
479
481
  workerConfig: {
480
- concurrency: 10,
481
- // Process 10 jobs at once for chunk processing
482
- limiter: {
483
- max: 200,
484
- // Max 5 jobs per...
485
- duration: 6e4
486
- // ...60 seconds (higher throughput for chunking)
487
- }
482
+ concurrency: 200,
483
+ lockDuration: 9e4,
484
+ maxStalledCount: 3
488
485
  }
489
486
  },
490
487
  CREATE_ANNOS_QUEUE: {
@@ -507,14 +504,9 @@ var BASE_BULLMQ_CONFIG = {
507
504
  }
508
505
  },
509
506
  workerConfig: {
510
- concurrency: 10,
511
- // Process 10 jobs at once for chunk processing
512
- limiter: {
513
- max: 100,
514
- // Max 50 jobs per...
515
- duration: 6e4
516
- // ...60 seconds (higher throughput for chunking)
517
- }
507
+ concurrency: 200,
508
+ lockDuration: 9e4,
509
+ maxStalledCount: 3
518
510
  }
519
511
  },
520
512
  CONTENT_ENHANCE_AND_EMBED_QUEUE: {
@@ -537,13 +529,9 @@ var BASE_BULLMQ_CONFIG = {
537
529
  }
538
530
  },
539
531
  workerConfig: {
540
- concurrency: 1,
541
- limiter: {
542
- max: 200,
543
- // Max 50 jobs per...
544
- duration: 6e4
545
- // ...60 seconds (higher throughput for chunking)
546
- }
532
+ concurrency: 200,
533
+ lockDuration: 9e4,
534
+ maxStalledCount: 3
547
535
  }
548
536
  },
549
537
  DIRECT_DATA_IMPORT_QUEUE: {
@@ -568,6 +556,8 @@ var BASE_BULLMQ_CONFIG = {
568
556
  workerConfig: {
569
557
  concurrency: 1,
570
558
  // Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
559
+ lockDuration: 9e4,
560
+ maxStalledCount: 3,
571
561
  limiter: {
572
562
  max: 20,
573
563
  // Max 5 jobs per...
@@ -597,6 +587,8 @@ var BASE_BULLMQ_CONFIG = {
597
587
  },
598
588
  workerConfig: {
599
589
  concurrency: 1,
590
+ lockDuration: 9e4,
591
+ maxStalledCount: 3,
600
592
  limiter: {
601
593
  max: 100,
602
594
  // (lets always keep this same as content enhance & embed since it comes immediately after)
@@ -625,13 +617,9 @@ var BASE_BULLMQ_CONFIG = {
625
617
  }
626
618
  },
627
619
  workerConfig: {
628
- concurrency: 5,
629
- limiter: {
630
- max: 100,
631
- // (lets always keep this same as content enhance & embed since it comes immediately after)
632
- duration: 6e4
633
- // ...60 seconds (higher throughput for chunking)
634
- }
620
+ concurrency: 200,
621
+ lockDuration: 9e4,
622
+ maxStalledCount: 3
635
623
  }
636
624
  },
637
625
  CHUNKS_ELASTIC_SYNC_QUEUE: {
@@ -654,13 +642,9 @@ var BASE_BULLMQ_CONFIG = {
654
642
  }
655
643
  },
656
644
  workerConfig: {
657
- concurrency: 5,
658
- limiter: {
659
- max: 200,
660
- // (lets always keep this same as content enhance & embed since it comes immediately after)
661
- duration: 6e4
662
- // ...60 seconds (higher throughput for chunking)
663
- }
645
+ concurrency: 200,
646
+ lockDuration: 9e4,
647
+ maxStalledCount: 3
664
648
  }
665
649
  },
666
650
  CONTENT_ELASTIC_SYNC_QUEUE: {
@@ -683,11 +667,9 @@ var BASE_BULLMQ_CONFIG = {
683
667
  }
684
668
  },
685
669
  workerConfig: {
686
- concurrency: 5,
687
- limiter: {
688
- max: 200,
689
- duration: 6e4
690
- }
670
+ concurrency: 200,
671
+ lockDuration: 9e4,
672
+ maxStalledCount: 3
691
673
  }
692
674
  },
693
675
  REINDEX_QUEUE: {
@@ -711,7 +693,9 @@ var BASE_BULLMQ_CONFIG = {
711
693
  }
712
694
  },
713
695
  workerConfig: {
714
- concurrency: 1
696
+ concurrency: 1,
697
+ lockDuration: 9e4,
698
+ maxStalledCount: 3
715
699
  }
716
700
  }
717
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,14 +443,9 @@ var BASE_BULLMQ_CONFIG = {
441
443
  }
442
444
  },
443
445
  workerConfig: {
444
- concurrency: 10,
445
- // Process 10 jobs at once for chunk processing
446
- limiter: {
447
- max: 200,
448
- // Max 5 jobs per...
449
- duration: 6e4
450
- // ...60 seconds (higher throughput for chunking)
451
- }
446
+ concurrency: 200,
447
+ lockDuration: 9e4,
448
+ maxStalledCount: 3
452
449
  }
453
450
  },
454
451
  CREATE_ANNOS_QUEUE: {
@@ -471,14 +468,9 @@ var BASE_BULLMQ_CONFIG = {
471
468
  }
472
469
  },
473
470
  workerConfig: {
474
- concurrency: 10,
475
- // Process 10 jobs at once for chunk processing
476
- limiter: {
477
- max: 100,
478
- // Max 50 jobs per...
479
- duration: 6e4
480
- // ...60 seconds (higher throughput for chunking)
481
- }
471
+ concurrency: 200,
472
+ lockDuration: 9e4,
473
+ maxStalledCount: 3
482
474
  }
483
475
  },
484
476
  CONTENT_ENHANCE_AND_EMBED_QUEUE: {
@@ -501,13 +493,9 @@ var BASE_BULLMQ_CONFIG = {
501
493
  }
502
494
  },
503
495
  workerConfig: {
504
- concurrency: 1,
505
- limiter: {
506
- max: 200,
507
- // Max 50 jobs per...
508
- duration: 6e4
509
- // ...60 seconds (higher throughput for chunking)
510
- }
496
+ concurrency: 200,
497
+ lockDuration: 9e4,
498
+ maxStalledCount: 3
511
499
  }
512
500
  },
513
501
  DIRECT_DATA_IMPORT_QUEUE: {
@@ -532,6 +520,8 @@ var BASE_BULLMQ_CONFIG = {
532
520
  workerConfig: {
533
521
  concurrency: 1,
534
522
  // Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
523
+ lockDuration: 9e4,
524
+ maxStalledCount: 3,
535
525
  limiter: {
536
526
  max: 20,
537
527
  // Max 5 jobs per...
@@ -561,6 +551,8 @@ var BASE_BULLMQ_CONFIG = {
561
551
  },
562
552
  workerConfig: {
563
553
  concurrency: 1,
554
+ lockDuration: 9e4,
555
+ maxStalledCount: 3,
564
556
  limiter: {
565
557
  max: 100,
566
558
  // (lets always keep this same as content enhance & embed since it comes immediately after)
@@ -589,13 +581,9 @@ var BASE_BULLMQ_CONFIG = {
589
581
  }
590
582
  },
591
583
  workerConfig: {
592
- concurrency: 5,
593
- limiter: {
594
- max: 100,
595
- // (lets always keep this same as content enhance & embed since it comes immediately after)
596
- duration: 6e4
597
- // ...60 seconds (higher throughput for chunking)
598
- }
584
+ concurrency: 200,
585
+ lockDuration: 9e4,
586
+ maxStalledCount: 3
599
587
  }
600
588
  },
601
589
  CHUNKS_ELASTIC_SYNC_QUEUE: {
@@ -618,13 +606,9 @@ var BASE_BULLMQ_CONFIG = {
618
606
  }
619
607
  },
620
608
  workerConfig: {
621
- concurrency: 5,
622
- limiter: {
623
- max: 200,
624
- // (lets always keep this same as content enhance & embed since it comes immediately after)
625
- duration: 6e4
626
- // ...60 seconds (higher throughput for chunking)
627
- }
609
+ concurrency: 200,
610
+ lockDuration: 9e4,
611
+ maxStalledCount: 3
628
612
  }
629
613
  },
630
614
  CONTENT_ELASTIC_SYNC_QUEUE: {
@@ -647,11 +631,9 @@ var BASE_BULLMQ_CONFIG = {
647
631
  }
648
632
  },
649
633
  workerConfig: {
650
- concurrency: 5,
651
- limiter: {
652
- max: 200,
653
- duration: 6e4
654
- }
634
+ concurrency: 200,
635
+ lockDuration: 9e4,
636
+ maxStalledCount: 3
655
637
  }
656
638
  },
657
639
  REINDEX_QUEUE: {
@@ -675,7 +657,9 @@ var BASE_BULLMQ_CONFIG = {
675
657
  }
676
658
  },
677
659
  workerConfig: {
678
- concurrency: 1
660
+ concurrency: 1,
661
+ lockDuration: 9e4,
662
+ maxStalledCount: 3
679
663
  }
680
664
  }
681
665
  };