@okf/ootils 1.13.0 → 1.14.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.
@@ -319,6 +319,13 @@ declare namespace BASE_BULLMQ_CONFIG {
319
319
  export namespace workerConfig_1 {
320
320
  let concurrency_1: number;
321
321
  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 };
322
329
  }
323
330
  export { workerConfig_1 as workerConfig };
324
331
  }
@@ -355,6 +362,13 @@ declare namespace BASE_BULLMQ_CONFIG {
355
362
  export namespace workerConfig_2 {
356
363
  let concurrency_2: number;
357
364
  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 };
358
372
  }
359
373
  export { workerConfig_2 as workerConfig };
360
374
  }
@@ -391,6 +405,13 @@ declare namespace BASE_BULLMQ_CONFIG {
391
405
  export namespace workerConfig_3 {
392
406
  let concurrency_3: number;
393
407
  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 };
394
415
  }
395
416
  export { workerConfig_3 as workerConfig };
396
417
  }
@@ -427,6 +448,13 @@ declare namespace BASE_BULLMQ_CONFIG {
427
448
  export namespace workerConfig_4 {
428
449
  let concurrency_4: number;
429
450
  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 };
456
+ }
457
+ export { limiter_4 as limiter };
430
458
  }
431
459
  export { workerConfig_4 as workerConfig };
432
460
  }
@@ -463,6 +491,13 @@ declare namespace BASE_BULLMQ_CONFIG {
463
491
  export namespace workerConfig_5 {
464
492
  let concurrency_5: number;
465
493
  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 };
499
+ }
500
+ export { limiter_5 as limiter };
466
501
  }
467
502
  export { workerConfig_5 as workerConfig };
468
503
  }
@@ -499,6 +534,13 @@ declare namespace BASE_BULLMQ_CONFIG {
499
534
  export namespace workerConfig_6 {
500
535
  let concurrency_6: number;
501
536
  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 };
502
544
  }
503
545
  export { workerConfig_6 as workerConfig };
504
546
  }
@@ -535,6 +577,13 @@ declare namespace BASE_BULLMQ_CONFIG {
535
577
  export namespace workerConfig_7 {
536
578
  let concurrency_7: number;
537
579
  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 };
538
587
  }
539
588
  export { workerConfig_7 as workerConfig };
540
589
  }
@@ -571,6 +620,13 @@ declare namespace BASE_BULLMQ_CONFIG {
571
620
  export namespace workerConfig_8 {
572
621
  let concurrency_8: number;
573
622
  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 };
574
630
  }
575
631
  export { workerConfig_8 as workerConfig };
576
632
  }
package/dist/browser.d.ts CHANGED
@@ -319,6 +319,13 @@ declare namespace BASE_BULLMQ_CONFIG {
319
319
  export namespace workerConfig_1 {
320
320
  let concurrency_1: number;
321
321
  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 };
322
329
  }
323
330
  export { workerConfig_1 as workerConfig };
324
331
  }
@@ -355,6 +362,13 @@ declare namespace BASE_BULLMQ_CONFIG {
355
362
  export namespace workerConfig_2 {
356
363
  let concurrency_2: number;
357
364
  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 };
358
372
  }
359
373
  export { workerConfig_2 as workerConfig };
360
374
  }
@@ -391,6 +405,13 @@ declare namespace BASE_BULLMQ_CONFIG {
391
405
  export namespace workerConfig_3 {
392
406
  let concurrency_3: number;
393
407
  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 };
394
415
  }
395
416
  export { workerConfig_3 as workerConfig };
396
417
  }
@@ -427,6 +448,13 @@ declare namespace BASE_BULLMQ_CONFIG {
427
448
  export namespace workerConfig_4 {
428
449
  let concurrency_4: number;
429
450
  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 };
456
+ }
457
+ export { limiter_4 as limiter };
430
458
  }
431
459
  export { workerConfig_4 as workerConfig };
432
460
  }
@@ -463,6 +491,13 @@ declare namespace BASE_BULLMQ_CONFIG {
463
491
  export namespace workerConfig_5 {
464
492
  let concurrency_5: number;
465
493
  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 };
499
+ }
500
+ export { limiter_5 as limiter };
466
501
  }
467
502
  export { workerConfig_5 as workerConfig };
468
503
  }
@@ -499,6 +534,13 @@ declare namespace BASE_BULLMQ_CONFIG {
499
534
  export namespace workerConfig_6 {
500
535
  let concurrency_6: number;
501
536
  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 };
502
544
  }
503
545
  export { workerConfig_6 as workerConfig };
504
546
  }
@@ -535,6 +577,13 @@ declare namespace BASE_BULLMQ_CONFIG {
535
577
  export namespace workerConfig_7 {
536
578
  let concurrency_7: number;
537
579
  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 };
538
587
  }
539
588
  export { workerConfig_7 as workerConfig };
540
589
  }
@@ -571,6 +620,13 @@ declare namespace BASE_BULLMQ_CONFIG {
571
620
  export namespace workerConfig_8 {
572
621
  let concurrency_8: number;
573
622
  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 };
574
630
  }
575
631
  export { workerConfig_8 as workerConfig };
576
632
  }
package/dist/browser.js CHANGED
@@ -477,7 +477,14 @@ var BASE_BULLMQ_CONFIG = {
477
477
  }
478
478
  },
479
479
  workerConfig: {
480
- concurrency: 200
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
+ }
481
488
  }
482
489
  },
483
490
  CREATE_ANNOS_QUEUE: {
@@ -500,7 +507,14 @@ var BASE_BULLMQ_CONFIG = {
500
507
  }
501
508
  },
502
509
  workerConfig: {
503
- concurrency: 200
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
+ }
504
518
  }
505
519
  },
506
520
  CONTENT_ENHANCE_AND_EMBED_QUEUE: {
@@ -523,7 +537,13 @@ var BASE_BULLMQ_CONFIG = {
523
537
  }
524
538
  },
525
539
  workerConfig: {
526
- concurrency: 200
540
+ concurrency: 1,
541
+ limiter: {
542
+ max: 200,
543
+ // Max 50 jobs per...
544
+ duration: 6e4
545
+ // ...60 seconds (higher throughput for chunking)
546
+ }
527
547
  }
528
548
  },
529
549
  DIRECT_DATA_IMPORT_QUEUE: {
@@ -546,7 +566,14 @@ var BASE_BULLMQ_CONFIG = {
546
566
  }
547
567
  },
548
568
  workerConfig: {
549
- concurrency: 1
569
+ concurrency: 1,
570
+ // Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
571
+ limiter: {
572
+ max: 20,
573
+ // Max 5 jobs per...
574
+ duration: 6e4
575
+ // ...60 seconds (higher throughput for chunking)
576
+ }
550
577
  }
551
578
  },
552
579
  AI_CATEGORIZE_QUEUE: {
@@ -569,7 +596,13 @@ var BASE_BULLMQ_CONFIG = {
569
596
  }
570
597
  },
571
598
  workerConfig: {
572
- concurrency: 200
599
+ concurrency: 1,
600
+ limiter: {
601
+ max: 100,
602
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
603
+ duration: 6e4
604
+ // ...60 seconds (higher throughput for chunking)
605
+ }
573
606
  }
574
607
  },
575
608
  ANNOS_ELASTIC_SYNC_QUEUE: {
@@ -592,7 +625,13 @@ var BASE_BULLMQ_CONFIG = {
592
625
  }
593
626
  },
594
627
  workerConfig: {
595
- concurrency: 200
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
+ }
596
635
  }
597
636
  },
598
637
  CHUNKS_ELASTIC_SYNC_QUEUE: {
@@ -615,7 +654,13 @@ var BASE_BULLMQ_CONFIG = {
615
654
  }
616
655
  },
617
656
  workerConfig: {
618
- concurrency: 200
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
+ }
619
664
  }
620
665
  },
621
666
  CONTENT_ELASTIC_SYNC_QUEUE: {
@@ -638,7 +683,11 @@ var BASE_BULLMQ_CONFIG = {
638
683
  }
639
684
  },
640
685
  workerConfig: {
641
- concurrency: 200
686
+ concurrency: 5,
687
+ limiter: {
688
+ max: 200,
689
+ duration: 6e4
690
+ }
642
691
  }
643
692
  },
644
693
  REINDEX_QUEUE: {
package/dist/browser.mjs CHANGED
@@ -441,7 +441,14 @@ var BASE_BULLMQ_CONFIG = {
441
441
  }
442
442
  },
443
443
  workerConfig: {
444
- concurrency: 200
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
+ }
445
452
  }
446
453
  },
447
454
  CREATE_ANNOS_QUEUE: {
@@ -464,7 +471,14 @@ var BASE_BULLMQ_CONFIG = {
464
471
  }
465
472
  },
466
473
  workerConfig: {
467
- concurrency: 200
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
+ }
468
482
  }
469
483
  },
470
484
  CONTENT_ENHANCE_AND_EMBED_QUEUE: {
@@ -487,7 +501,13 @@ var BASE_BULLMQ_CONFIG = {
487
501
  }
488
502
  },
489
503
  workerConfig: {
490
- concurrency: 200
504
+ concurrency: 1,
505
+ limiter: {
506
+ max: 200,
507
+ // Max 50 jobs per...
508
+ duration: 6e4
509
+ // ...60 seconds (higher throughput for chunking)
510
+ }
491
511
  }
492
512
  },
493
513
  DIRECT_DATA_IMPORT_QUEUE: {
@@ -510,7 +530,14 @@ var BASE_BULLMQ_CONFIG = {
510
530
  }
511
531
  },
512
532
  workerConfig: {
513
- concurrency: 1
533
+ concurrency: 1,
534
+ // Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
535
+ limiter: {
536
+ max: 20,
537
+ // Max 5 jobs per...
538
+ duration: 6e4
539
+ // ...60 seconds (higher throughput for chunking)
540
+ }
514
541
  }
515
542
  },
516
543
  AI_CATEGORIZE_QUEUE: {
@@ -533,7 +560,13 @@ var BASE_BULLMQ_CONFIG = {
533
560
  }
534
561
  },
535
562
  workerConfig: {
536
- concurrency: 200
563
+ concurrency: 1,
564
+ limiter: {
565
+ max: 100,
566
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
567
+ duration: 6e4
568
+ // ...60 seconds (higher throughput for chunking)
569
+ }
537
570
  }
538
571
  },
539
572
  ANNOS_ELASTIC_SYNC_QUEUE: {
@@ -556,7 +589,13 @@ var BASE_BULLMQ_CONFIG = {
556
589
  }
557
590
  },
558
591
  workerConfig: {
559
- concurrency: 200
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
+ }
560
599
  }
561
600
  },
562
601
  CHUNKS_ELASTIC_SYNC_QUEUE: {
@@ -579,7 +618,13 @@ var BASE_BULLMQ_CONFIG = {
579
618
  }
580
619
  },
581
620
  workerConfig: {
582
- concurrency: 200
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
+ }
583
628
  }
584
629
  },
585
630
  CONTENT_ELASTIC_SYNC_QUEUE: {
@@ -602,7 +647,11 @@ var BASE_BULLMQ_CONFIG = {
602
647
  }
603
648
  },
604
649
  workerConfig: {
605
- concurrency: 200
650
+ concurrency: 5,
651
+ limiter: {
652
+ max: 200,
653
+ duration: 6e4
654
+ }
606
655
  }
607
656
  },
608
657
  REINDEX_QUEUE: {
package/dist/node.d.mts CHANGED
@@ -326,6 +326,13 @@ declare namespace BASE_BULLMQ_CONFIG {
326
326
  export namespace workerConfig_1 {
327
327
  let concurrency_1: number;
328
328
  export { concurrency_1 as concurrency };
329
+ export namespace limiter_1 {
330
+ let max_1: number;
331
+ export { max_1 as max };
332
+ let duration_1: number;
333
+ export { duration_1 as duration };
334
+ }
335
+ export { limiter_1 as limiter };
329
336
  }
330
337
  export { workerConfig_1 as workerConfig };
331
338
  }
@@ -362,6 +369,13 @@ declare namespace BASE_BULLMQ_CONFIG {
362
369
  export namespace workerConfig_2 {
363
370
  let concurrency_2: number;
364
371
  export { concurrency_2 as concurrency };
372
+ export namespace limiter_2 {
373
+ let max_2: number;
374
+ export { max_2 as max };
375
+ let duration_2: number;
376
+ export { duration_2 as duration };
377
+ }
378
+ export { limiter_2 as limiter };
365
379
  }
366
380
  export { workerConfig_2 as workerConfig };
367
381
  }
@@ -398,6 +412,13 @@ declare namespace BASE_BULLMQ_CONFIG {
398
412
  export namespace workerConfig_3 {
399
413
  let concurrency_3: number;
400
414
  export { concurrency_3 as concurrency };
415
+ export namespace limiter_3 {
416
+ let max_3: number;
417
+ export { max_3 as max };
418
+ let duration_3: number;
419
+ export { duration_3 as duration };
420
+ }
421
+ export { limiter_3 as limiter };
401
422
  }
402
423
  export { workerConfig_3 as workerConfig };
403
424
  }
@@ -434,6 +455,13 @@ declare namespace BASE_BULLMQ_CONFIG {
434
455
  export namespace workerConfig_4 {
435
456
  let concurrency_4: number;
436
457
  export { concurrency_4 as concurrency };
458
+ export namespace limiter_4 {
459
+ let max_4: number;
460
+ export { max_4 as max };
461
+ let duration_4: number;
462
+ export { duration_4 as duration };
463
+ }
464
+ export { limiter_4 as limiter };
437
465
  }
438
466
  export { workerConfig_4 as workerConfig };
439
467
  }
@@ -470,6 +498,13 @@ declare namespace BASE_BULLMQ_CONFIG {
470
498
  export namespace workerConfig_5 {
471
499
  let concurrency_5: number;
472
500
  export { concurrency_5 as concurrency };
501
+ export namespace limiter_5 {
502
+ let max_5: number;
503
+ export { max_5 as max };
504
+ let duration_5: number;
505
+ export { duration_5 as duration };
506
+ }
507
+ export { limiter_5 as limiter };
473
508
  }
474
509
  export { workerConfig_5 as workerConfig };
475
510
  }
@@ -506,6 +541,13 @@ declare namespace BASE_BULLMQ_CONFIG {
506
541
  export namespace workerConfig_6 {
507
542
  let concurrency_6: number;
508
543
  export { concurrency_6 as concurrency };
544
+ export namespace limiter_6 {
545
+ let max_6: number;
546
+ export { max_6 as max };
547
+ let duration_6: number;
548
+ export { duration_6 as duration };
549
+ }
550
+ export { limiter_6 as limiter };
509
551
  }
510
552
  export { workerConfig_6 as workerConfig };
511
553
  }
@@ -542,6 +584,13 @@ declare namespace BASE_BULLMQ_CONFIG {
542
584
  export namespace workerConfig_7 {
543
585
  let concurrency_7: number;
544
586
  export { concurrency_7 as concurrency };
587
+ export namespace limiter_7 {
588
+ let max_7: number;
589
+ export { max_7 as max };
590
+ let duration_7: number;
591
+ export { duration_7 as duration };
592
+ }
593
+ export { limiter_7 as limiter };
545
594
  }
546
595
  export { workerConfig_7 as workerConfig };
547
596
  }
@@ -578,6 +627,13 @@ declare namespace BASE_BULLMQ_CONFIG {
578
627
  export namespace workerConfig_8 {
579
628
  let concurrency_8: number;
580
629
  export { concurrency_8 as concurrency };
630
+ export namespace limiter_8 {
631
+ let max_8: number;
632
+ export { max_8 as max };
633
+ let duration_8: number;
634
+ export { duration_8 as duration };
635
+ }
636
+ export { limiter_8 as limiter };
581
637
  }
582
638
  export { workerConfig_8 as workerConfig };
583
639
  }
package/dist/node.d.ts CHANGED
@@ -326,6 +326,13 @@ declare namespace BASE_BULLMQ_CONFIG {
326
326
  export namespace workerConfig_1 {
327
327
  let concurrency_1: number;
328
328
  export { concurrency_1 as concurrency };
329
+ export namespace limiter_1 {
330
+ let max_1: number;
331
+ export { max_1 as max };
332
+ let duration_1: number;
333
+ export { duration_1 as duration };
334
+ }
335
+ export { limiter_1 as limiter };
329
336
  }
330
337
  export { workerConfig_1 as workerConfig };
331
338
  }
@@ -362,6 +369,13 @@ declare namespace BASE_BULLMQ_CONFIG {
362
369
  export namespace workerConfig_2 {
363
370
  let concurrency_2: number;
364
371
  export { concurrency_2 as concurrency };
372
+ export namespace limiter_2 {
373
+ let max_2: number;
374
+ export { max_2 as max };
375
+ let duration_2: number;
376
+ export { duration_2 as duration };
377
+ }
378
+ export { limiter_2 as limiter };
365
379
  }
366
380
  export { workerConfig_2 as workerConfig };
367
381
  }
@@ -398,6 +412,13 @@ declare namespace BASE_BULLMQ_CONFIG {
398
412
  export namespace workerConfig_3 {
399
413
  let concurrency_3: number;
400
414
  export { concurrency_3 as concurrency };
415
+ export namespace limiter_3 {
416
+ let max_3: number;
417
+ export { max_3 as max };
418
+ let duration_3: number;
419
+ export { duration_3 as duration };
420
+ }
421
+ export { limiter_3 as limiter };
401
422
  }
402
423
  export { workerConfig_3 as workerConfig };
403
424
  }
@@ -434,6 +455,13 @@ declare namespace BASE_BULLMQ_CONFIG {
434
455
  export namespace workerConfig_4 {
435
456
  let concurrency_4: number;
436
457
  export { concurrency_4 as concurrency };
458
+ export namespace limiter_4 {
459
+ let max_4: number;
460
+ export { max_4 as max };
461
+ let duration_4: number;
462
+ export { duration_4 as duration };
463
+ }
464
+ export { limiter_4 as limiter };
437
465
  }
438
466
  export { workerConfig_4 as workerConfig };
439
467
  }
@@ -470,6 +498,13 @@ declare namespace BASE_BULLMQ_CONFIG {
470
498
  export namespace workerConfig_5 {
471
499
  let concurrency_5: number;
472
500
  export { concurrency_5 as concurrency };
501
+ export namespace limiter_5 {
502
+ let max_5: number;
503
+ export { max_5 as max };
504
+ let duration_5: number;
505
+ export { duration_5 as duration };
506
+ }
507
+ export { limiter_5 as limiter };
473
508
  }
474
509
  export { workerConfig_5 as workerConfig };
475
510
  }
@@ -506,6 +541,13 @@ declare namespace BASE_BULLMQ_CONFIG {
506
541
  export namespace workerConfig_6 {
507
542
  let concurrency_6: number;
508
543
  export { concurrency_6 as concurrency };
544
+ export namespace limiter_6 {
545
+ let max_6: number;
546
+ export { max_6 as max };
547
+ let duration_6: number;
548
+ export { duration_6 as duration };
549
+ }
550
+ export { limiter_6 as limiter };
509
551
  }
510
552
  export { workerConfig_6 as workerConfig };
511
553
  }
@@ -542,6 +584,13 @@ declare namespace BASE_BULLMQ_CONFIG {
542
584
  export namespace workerConfig_7 {
543
585
  let concurrency_7: number;
544
586
  export { concurrency_7 as concurrency };
587
+ export namespace limiter_7 {
588
+ let max_7: number;
589
+ export { max_7 as max };
590
+ let duration_7: number;
591
+ export { duration_7 as duration };
592
+ }
593
+ export { limiter_7 as limiter };
545
594
  }
546
595
  export { workerConfig_7 as workerConfig };
547
596
  }
@@ -578,6 +627,13 @@ declare namespace BASE_BULLMQ_CONFIG {
578
627
  export namespace workerConfig_8 {
579
628
  let concurrency_8: number;
580
629
  export { concurrency_8 as concurrency };
630
+ export namespace limiter_8 {
631
+ let max_8: number;
632
+ export { max_8 as max };
633
+ let duration_8: number;
634
+ export { duration_8 as duration };
635
+ }
636
+ export { limiter_8 as limiter };
581
637
  }
582
638
  export { workerConfig_8 as workerConfig };
583
639
  }
package/dist/node.js CHANGED
@@ -96,7 +96,14 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
96
96
  }
97
97
  },
98
98
  workerConfig: {
99
- concurrency: 200
99
+ concurrency: 10,
100
+ // Process 10 jobs at once for chunk processing
101
+ limiter: {
102
+ max: 200,
103
+ // Max 5 jobs per...
104
+ duration: 6e4
105
+ // ...60 seconds (higher throughput for chunking)
106
+ }
100
107
  }
101
108
  },
102
109
  CREATE_ANNOS_QUEUE: {
@@ -119,7 +126,14 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
119
126
  }
120
127
  },
121
128
  workerConfig: {
122
- concurrency: 200
129
+ concurrency: 10,
130
+ // Process 10 jobs at once for chunk processing
131
+ limiter: {
132
+ max: 100,
133
+ // Max 50 jobs per...
134
+ duration: 6e4
135
+ // ...60 seconds (higher throughput for chunking)
136
+ }
123
137
  }
124
138
  },
125
139
  CONTENT_ENHANCE_AND_EMBED_QUEUE: {
@@ -142,7 +156,13 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
142
156
  }
143
157
  },
144
158
  workerConfig: {
145
- concurrency: 200
159
+ concurrency: 1,
160
+ limiter: {
161
+ max: 200,
162
+ // Max 50 jobs per...
163
+ duration: 6e4
164
+ // ...60 seconds (higher throughput for chunking)
165
+ }
146
166
  }
147
167
  },
148
168
  DIRECT_DATA_IMPORT_QUEUE: {
@@ -165,7 +185,14 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
165
185
  }
166
186
  },
167
187
  workerConfig: {
168
- concurrency: 1
188
+ concurrency: 1,
189
+ // Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
190
+ limiter: {
191
+ max: 20,
192
+ // Max 5 jobs per...
193
+ duration: 6e4
194
+ // ...60 seconds (higher throughput for chunking)
195
+ }
169
196
  }
170
197
  },
171
198
  AI_CATEGORIZE_QUEUE: {
@@ -188,7 +215,13 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
188
215
  }
189
216
  },
190
217
  workerConfig: {
191
- concurrency: 200
218
+ concurrency: 1,
219
+ limiter: {
220
+ max: 100,
221
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
222
+ duration: 6e4
223
+ // ...60 seconds (higher throughput for chunking)
224
+ }
192
225
  }
193
226
  },
194
227
  ANNOS_ELASTIC_SYNC_QUEUE: {
@@ -211,7 +244,13 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
211
244
  }
212
245
  },
213
246
  workerConfig: {
214
- concurrency: 200
247
+ concurrency: 5,
248
+ limiter: {
249
+ max: 100,
250
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
251
+ duration: 6e4
252
+ // ...60 seconds (higher throughput for chunking)
253
+ }
215
254
  }
216
255
  },
217
256
  CHUNKS_ELASTIC_SYNC_QUEUE: {
@@ -234,7 +273,13 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
234
273
  }
235
274
  },
236
275
  workerConfig: {
237
- concurrency: 200
276
+ concurrency: 5,
277
+ limiter: {
278
+ max: 200,
279
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
280
+ duration: 6e4
281
+ // ...60 seconds (higher throughput for chunking)
282
+ }
238
283
  }
239
284
  },
240
285
  CONTENT_ELASTIC_SYNC_QUEUE: {
@@ -257,7 +302,11 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
257
302
  }
258
303
  },
259
304
  workerConfig: {
260
- concurrency: 200
305
+ concurrency: 5,
306
+ limiter: {
307
+ max: 200,
308
+ duration: 6e4
309
+ }
261
310
  }
262
311
  },
263
312
  REINDEX_QUEUE: {
package/dist/node.mjs CHANGED
@@ -101,7 +101,14 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
101
101
  }
102
102
  },
103
103
  workerConfig: {
104
- concurrency: 200
104
+ concurrency: 10,
105
+ // Process 10 jobs at once for chunk processing
106
+ limiter: {
107
+ max: 200,
108
+ // Max 5 jobs per...
109
+ duration: 6e4
110
+ // ...60 seconds (higher throughput for chunking)
111
+ }
105
112
  }
106
113
  },
107
114
  CREATE_ANNOS_QUEUE: {
@@ -124,7 +131,14 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
124
131
  }
125
132
  },
126
133
  workerConfig: {
127
- concurrency: 200
134
+ concurrency: 10,
135
+ // Process 10 jobs at once for chunk processing
136
+ limiter: {
137
+ max: 100,
138
+ // Max 50 jobs per...
139
+ duration: 6e4
140
+ // ...60 seconds (higher throughput for chunking)
141
+ }
128
142
  }
129
143
  },
130
144
  CONTENT_ENHANCE_AND_EMBED_QUEUE: {
@@ -147,7 +161,13 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
147
161
  }
148
162
  },
149
163
  workerConfig: {
150
- concurrency: 200
164
+ concurrency: 1,
165
+ limiter: {
166
+ max: 200,
167
+ // Max 50 jobs per...
168
+ duration: 6e4
169
+ // ...60 seconds (higher throughput for chunking)
170
+ }
151
171
  }
152
172
  },
153
173
  DIRECT_DATA_IMPORT_QUEUE: {
@@ -170,7 +190,14 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
170
190
  }
171
191
  },
172
192
  workerConfig: {
173
- concurrency: 1
193
+ concurrency: 1,
194
+ // Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
195
+ limiter: {
196
+ max: 20,
197
+ // Max 5 jobs per...
198
+ duration: 6e4
199
+ // ...60 seconds (higher throughput for chunking)
200
+ }
174
201
  }
175
202
  },
176
203
  AI_CATEGORIZE_QUEUE: {
@@ -193,7 +220,13 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
193
220
  }
194
221
  },
195
222
  workerConfig: {
196
- concurrency: 200
223
+ concurrency: 1,
224
+ limiter: {
225
+ max: 100,
226
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
227
+ duration: 6e4
228
+ // ...60 seconds (higher throughput for chunking)
229
+ }
197
230
  }
198
231
  },
199
232
  ANNOS_ELASTIC_SYNC_QUEUE: {
@@ -216,7 +249,13 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
216
249
  }
217
250
  },
218
251
  workerConfig: {
219
- concurrency: 200
252
+ concurrency: 5,
253
+ limiter: {
254
+ max: 100,
255
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
256
+ duration: 6e4
257
+ // ...60 seconds (higher throughput for chunking)
258
+ }
220
259
  }
221
260
  },
222
261
  CHUNKS_ELASTIC_SYNC_QUEUE: {
@@ -239,7 +278,13 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
239
278
  }
240
279
  },
241
280
  workerConfig: {
242
- concurrency: 200
281
+ concurrency: 5,
282
+ limiter: {
283
+ max: 200,
284
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
285
+ duration: 6e4
286
+ // ...60 seconds (higher throughput for chunking)
287
+ }
243
288
  }
244
289
  },
245
290
  CONTENT_ELASTIC_SYNC_QUEUE: {
@@ -262,7 +307,11 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
262
307
  }
263
308
  },
264
309
  workerConfig: {
265
- concurrency: 200
310
+ concurrency: 5,
311
+ limiter: {
312
+ max: 200,
313
+ duration: 6e4
314
+ }
266
315
  }
267
316
  },
268
317
  REINDEX_QUEUE: {
@@ -319,6 +319,13 @@ declare namespace BASE_BULLMQ_CONFIG {
319
319
  export namespace workerConfig_1 {
320
320
  let concurrency_1: number;
321
321
  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 };
322
329
  }
323
330
  export { workerConfig_1 as workerConfig };
324
331
  }
@@ -355,6 +362,13 @@ declare namespace BASE_BULLMQ_CONFIG {
355
362
  export namespace workerConfig_2 {
356
363
  let concurrency_2: number;
357
364
  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 };
358
372
  }
359
373
  export { workerConfig_2 as workerConfig };
360
374
  }
@@ -391,6 +405,13 @@ declare namespace BASE_BULLMQ_CONFIG {
391
405
  export namespace workerConfig_3 {
392
406
  let concurrency_3: number;
393
407
  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 };
394
415
  }
395
416
  export { workerConfig_3 as workerConfig };
396
417
  }
@@ -427,6 +448,13 @@ declare namespace BASE_BULLMQ_CONFIG {
427
448
  export namespace workerConfig_4 {
428
449
  let concurrency_4: number;
429
450
  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 };
456
+ }
457
+ export { limiter_4 as limiter };
430
458
  }
431
459
  export { workerConfig_4 as workerConfig };
432
460
  }
@@ -463,6 +491,13 @@ declare namespace BASE_BULLMQ_CONFIG {
463
491
  export namespace workerConfig_5 {
464
492
  let concurrency_5: number;
465
493
  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 };
499
+ }
500
+ export { limiter_5 as limiter };
466
501
  }
467
502
  export { workerConfig_5 as workerConfig };
468
503
  }
@@ -499,6 +534,13 @@ declare namespace BASE_BULLMQ_CONFIG {
499
534
  export namespace workerConfig_6 {
500
535
  let concurrency_6: number;
501
536
  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 };
502
544
  }
503
545
  export { workerConfig_6 as workerConfig };
504
546
  }
@@ -535,6 +577,13 @@ declare namespace BASE_BULLMQ_CONFIG {
535
577
  export namespace workerConfig_7 {
536
578
  let concurrency_7: number;
537
579
  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 };
538
587
  }
539
588
  export { workerConfig_7 as workerConfig };
540
589
  }
@@ -571,6 +620,13 @@ declare namespace BASE_BULLMQ_CONFIG {
571
620
  export namespace workerConfig_8 {
572
621
  let concurrency_8: number;
573
622
  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 };
574
630
  }
575
631
  export { workerConfig_8 as workerConfig };
576
632
  }
@@ -319,6 +319,13 @@ declare namespace BASE_BULLMQ_CONFIG {
319
319
  export namespace workerConfig_1 {
320
320
  let concurrency_1: number;
321
321
  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 };
322
329
  }
323
330
  export { workerConfig_1 as workerConfig };
324
331
  }
@@ -355,6 +362,13 @@ declare namespace BASE_BULLMQ_CONFIG {
355
362
  export namespace workerConfig_2 {
356
363
  let concurrency_2: number;
357
364
  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 };
358
372
  }
359
373
  export { workerConfig_2 as workerConfig };
360
374
  }
@@ -391,6 +405,13 @@ declare namespace BASE_BULLMQ_CONFIG {
391
405
  export namespace workerConfig_3 {
392
406
  let concurrency_3: number;
393
407
  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 };
394
415
  }
395
416
  export { workerConfig_3 as workerConfig };
396
417
  }
@@ -427,6 +448,13 @@ declare namespace BASE_BULLMQ_CONFIG {
427
448
  export namespace workerConfig_4 {
428
449
  let concurrency_4: number;
429
450
  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 };
456
+ }
457
+ export { limiter_4 as limiter };
430
458
  }
431
459
  export { workerConfig_4 as workerConfig };
432
460
  }
@@ -463,6 +491,13 @@ declare namespace BASE_BULLMQ_CONFIG {
463
491
  export namespace workerConfig_5 {
464
492
  let concurrency_5: number;
465
493
  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 };
499
+ }
500
+ export { limiter_5 as limiter };
466
501
  }
467
502
  export { workerConfig_5 as workerConfig };
468
503
  }
@@ -499,6 +534,13 @@ declare namespace BASE_BULLMQ_CONFIG {
499
534
  export namespace workerConfig_6 {
500
535
  let concurrency_6: number;
501
536
  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 };
502
544
  }
503
545
  export { workerConfig_6 as workerConfig };
504
546
  }
@@ -535,6 +577,13 @@ declare namespace BASE_BULLMQ_CONFIG {
535
577
  export namespace workerConfig_7 {
536
578
  let concurrency_7: number;
537
579
  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 };
538
587
  }
539
588
  export { workerConfig_7 as workerConfig };
540
589
  }
@@ -571,6 +620,13 @@ declare namespace BASE_BULLMQ_CONFIG {
571
620
  export namespace workerConfig_8 {
572
621
  let concurrency_8: number;
573
622
  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 };
574
630
  }
575
631
  export { workerConfig_8 as workerConfig };
576
632
  }
package/dist/universal.js CHANGED
@@ -477,7 +477,14 @@ var BASE_BULLMQ_CONFIG = {
477
477
  }
478
478
  },
479
479
  workerConfig: {
480
- concurrency: 200
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
+ }
481
488
  }
482
489
  },
483
490
  CREATE_ANNOS_QUEUE: {
@@ -500,7 +507,14 @@ var BASE_BULLMQ_CONFIG = {
500
507
  }
501
508
  },
502
509
  workerConfig: {
503
- concurrency: 200
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
+ }
504
518
  }
505
519
  },
506
520
  CONTENT_ENHANCE_AND_EMBED_QUEUE: {
@@ -523,7 +537,13 @@ var BASE_BULLMQ_CONFIG = {
523
537
  }
524
538
  },
525
539
  workerConfig: {
526
- concurrency: 200
540
+ concurrency: 1,
541
+ limiter: {
542
+ max: 200,
543
+ // Max 50 jobs per...
544
+ duration: 6e4
545
+ // ...60 seconds (higher throughput for chunking)
546
+ }
527
547
  }
528
548
  },
529
549
  DIRECT_DATA_IMPORT_QUEUE: {
@@ -546,7 +566,14 @@ var BASE_BULLMQ_CONFIG = {
546
566
  }
547
567
  },
548
568
  workerConfig: {
549
- concurrency: 1
569
+ concurrency: 1,
570
+ // Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
571
+ limiter: {
572
+ max: 20,
573
+ // Max 5 jobs per...
574
+ duration: 6e4
575
+ // ...60 seconds (higher throughput for chunking)
576
+ }
550
577
  }
551
578
  },
552
579
  AI_CATEGORIZE_QUEUE: {
@@ -569,7 +596,13 @@ var BASE_BULLMQ_CONFIG = {
569
596
  }
570
597
  },
571
598
  workerConfig: {
572
- concurrency: 200
599
+ concurrency: 1,
600
+ limiter: {
601
+ max: 100,
602
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
603
+ duration: 6e4
604
+ // ...60 seconds (higher throughput for chunking)
605
+ }
573
606
  }
574
607
  },
575
608
  ANNOS_ELASTIC_SYNC_QUEUE: {
@@ -592,7 +625,13 @@ var BASE_BULLMQ_CONFIG = {
592
625
  }
593
626
  },
594
627
  workerConfig: {
595
- concurrency: 200
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
+ }
596
635
  }
597
636
  },
598
637
  CHUNKS_ELASTIC_SYNC_QUEUE: {
@@ -615,7 +654,13 @@ var BASE_BULLMQ_CONFIG = {
615
654
  }
616
655
  },
617
656
  workerConfig: {
618
- concurrency: 200
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
+ }
619
664
  }
620
665
  },
621
666
  CONTENT_ELASTIC_SYNC_QUEUE: {
@@ -638,7 +683,11 @@ var BASE_BULLMQ_CONFIG = {
638
683
  }
639
684
  },
640
685
  workerConfig: {
641
- concurrency: 200
686
+ concurrency: 5,
687
+ limiter: {
688
+ max: 200,
689
+ duration: 6e4
690
+ }
642
691
  }
643
692
  },
644
693
  REINDEX_QUEUE: {
@@ -441,7 +441,14 @@ var BASE_BULLMQ_CONFIG = {
441
441
  }
442
442
  },
443
443
  workerConfig: {
444
- concurrency: 200
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
+ }
445
452
  }
446
453
  },
447
454
  CREATE_ANNOS_QUEUE: {
@@ -464,7 +471,14 @@ var BASE_BULLMQ_CONFIG = {
464
471
  }
465
472
  },
466
473
  workerConfig: {
467
- concurrency: 200
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
+ }
468
482
  }
469
483
  },
470
484
  CONTENT_ENHANCE_AND_EMBED_QUEUE: {
@@ -487,7 +501,13 @@ var BASE_BULLMQ_CONFIG = {
487
501
  }
488
502
  },
489
503
  workerConfig: {
490
- concurrency: 200
504
+ concurrency: 1,
505
+ limiter: {
506
+ max: 200,
507
+ // Max 50 jobs per...
508
+ duration: 6e4
509
+ // ...60 seconds (higher throughput for chunking)
510
+ }
491
511
  }
492
512
  },
493
513
  DIRECT_DATA_IMPORT_QUEUE: {
@@ -510,7 +530,14 @@ var BASE_BULLMQ_CONFIG = {
510
530
  }
511
531
  },
512
532
  workerConfig: {
513
- concurrency: 1
533
+ concurrency: 1,
534
+ // Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
535
+ limiter: {
536
+ max: 20,
537
+ // Max 5 jobs per...
538
+ duration: 6e4
539
+ // ...60 seconds (higher throughput for chunking)
540
+ }
514
541
  }
515
542
  },
516
543
  AI_CATEGORIZE_QUEUE: {
@@ -533,7 +560,13 @@ var BASE_BULLMQ_CONFIG = {
533
560
  }
534
561
  },
535
562
  workerConfig: {
536
- concurrency: 200
563
+ concurrency: 1,
564
+ limiter: {
565
+ max: 100,
566
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
567
+ duration: 6e4
568
+ // ...60 seconds (higher throughput for chunking)
569
+ }
537
570
  }
538
571
  },
539
572
  ANNOS_ELASTIC_SYNC_QUEUE: {
@@ -556,7 +589,13 @@ var BASE_BULLMQ_CONFIG = {
556
589
  }
557
590
  },
558
591
  workerConfig: {
559
- concurrency: 200
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
+ }
560
599
  }
561
600
  },
562
601
  CHUNKS_ELASTIC_SYNC_QUEUE: {
@@ -579,7 +618,13 @@ var BASE_BULLMQ_CONFIG = {
579
618
  }
580
619
  },
581
620
  workerConfig: {
582
- concurrency: 200
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
+ }
583
628
  }
584
629
  },
585
630
  CONTENT_ELASTIC_SYNC_QUEUE: {
@@ -602,7 +647,11 @@ var BASE_BULLMQ_CONFIG = {
602
647
  }
603
648
  },
604
649
  workerConfig: {
605
- concurrency: 200
650
+ concurrency: 5,
651
+ limiter: {
652
+ max: 200,
653
+ duration: 6e4
654
+ }
606
655
  }
607
656
  },
608
657
  REINDEX_QUEUE: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.13.0",
6
+ "version": "1.14.0",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",