@cldmv/holdmytask 1.5.0 → 1.6.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/README.md CHANGED
@@ -265,7 +265,10 @@ This pattern is particularly useful when you need to handle initialization error
265
265
  - `defaultPriority` (number, default: 0) - Default task priority
266
266
  - `maxQueue` (number, default: Infinity) - Maximum queued tasks. Use `-1` for unlimited queue capacity (equivalent to `Infinity`)
267
267
  - `delays` (object, default: {}) - **DEPRECATED:** Priority-to-delay mapping for completion delays (use `priorities` instead)
268
- - `priorities` (object, default: {}) - Priority-specific configuration: `{ [priority]: { delay, start } }`
268
+ - `priorities` (object, default: {}) - Priority-specific configuration: `{ [priority]: { concurrency, postDelay, startDelay } }`
269
+ - `concurrency` (number) - Maximum concurrent tasks for this priority (defaults to global concurrency limit)
270
+ - `postDelay` (number) - Delay after task completion before next task of same priority
271
+ - `startDelay` (number) - Delay before task execution (pre-execution delay)
269
272
  - `coalescing` (object) - Enhanced coalescing configuration
270
273
  - `defaults` (object) - Default settings for all coalescing keys
271
274
  - `windowDuration` (number, default: 200) - Window duration in milliseconds
@@ -845,6 +848,112 @@ const legacyQueue = new HoldMyTask({
845
848
  - Includes healing mechanism to prevent scheduler stalls
846
849
  - Falls back gracefully on complex timing scenarios
847
850
 
851
+ ### Per-Priority Concurrency Limits
852
+
853
+ HoldMyTask supports granular concurrency control at the priority level, allowing you to fine-tune how many tasks of each priority can run simultaneously while still respecting the global concurrency limit.
854
+
855
+ #### Key Benefits
856
+
857
+ - **Database operations** - Run only 1 critical database migration at a time
858
+ - **API rate limiting** - Limit API calls per priority to avoid overwhelming services
859
+ - **Resource management** - Control expensive operations while allowing lightweight tasks
860
+ - **Flexible scaling** - Different priorities can have different concurrency characteristics
861
+
862
+ #### Configuration
863
+
864
+ ```javascript
865
+ const queue = new HoldMyTask({
866
+ concurrency: 8, // Global maximum: 8 total tasks across all priorities
867
+ priorities: {
868
+ 1: {
869
+ concurrency: 1, // Critical: Only 1 at a time (database migrations, etc.)
870
+ postDelay: 100, // 100ms delay after completion
871
+ startDelay: 0 // No pre-execution delay
872
+ },
873
+ 2: {
874
+ concurrency: 3, // Important: Up to 3 at a time (API calls, file processing)
875
+ postDelay: 200, // 200ms delay after completion
876
+ startDelay: 50 // 50ms pre-execution delay
877
+ },
878
+ 3: {
879
+ concurrency: 5, // Background: Up to 5 at a time (cleanup, logging, etc.)
880
+ postDelay: 0, // No post-completion delay
881
+ startDelay: 100 // 100ms pre-execution delay
882
+ }
883
+ // Priority 4+ tasks: No specific limit, use global concurrency
884
+ }
885
+ });
886
+ ```
887
+
888
+ #### How It Works
889
+
890
+ 1. **Global Limit First** - The total running tasks never exceed the global `concurrency` setting
891
+ 2. **Per-Priority Limits** - Tasks of each priority respect their individual `concurrency` limit
892
+ 3. **Dynamic Scheduling** - If one priority is at its limit, other priorities can still start tasks
893
+ 4. **Automatic Fallback** - Priorities without `concurrency` settings use the global limit
894
+
895
+ #### Usage Examples
896
+
897
+ ```javascript
898
+ // Database migration (priority 1): Only 1 can run at a time
899
+ await queue.enqueue(
900
+ async () => {
901
+ await runDatabaseMigration();
902
+ },
903
+ { priority: 1 }
904
+ );
905
+
906
+ // API calls (priority 2): Up to 3 can run concurrently
907
+ await queue.enqueue(
908
+ async () => {
909
+ return await fetchUserData(userId);
910
+ },
911
+ { priority: 2 }
912
+ );
913
+
914
+ // Background cleanup (priority 3): Up to 5 can run concurrently
915
+ await queue.enqueue(
916
+ async () => {
917
+ await cleanupTempFiles();
918
+ },
919
+ { priority: 3 }
920
+ );
921
+
922
+ // High-priority urgent task (priority 10): Uses global concurrency limit
923
+ await queue.enqueue(
924
+ async () => {
925
+ await handleEmergencyAlert();
926
+ },
927
+ { priority: 10 }
928
+ );
929
+ ```
930
+
931
+ #### Monitoring Per-Priority Concurrency
932
+
933
+ ```javascript
934
+ // Check current concurrency state
935
+ const inspection = queue.inspect();
936
+ console.log("Global concurrency:", inspection.scheduler.currentConcurrency + "/" + inspection.scheduler.concurrency);
937
+
938
+ // Per-priority concurrency information
939
+ Object.entries(inspection.scheduler.priorityConcurrency).forEach(([priority, info]) => {
940
+ console.log(`Priority ${priority}: ${info.running}/${info.limit} (${info.available} available)`);
941
+ });
942
+
943
+ // Or use the scheduler-specific inspection
944
+ const scheduler = queue.inspectScheduler();
945
+ console.log("Priority concurrency limits:", scheduler.priorityConcurrency);
946
+ ```
947
+
948
+ #### Example Output
949
+
950
+ ```text
951
+ Global concurrency: 6/8
952
+ Priority 1: 1/1 (0 available)
953
+ Priority 2: 2/3 (1 available)
954
+ Priority 3: 3/5 (2 available)
955
+ ```
956
+
848
957
  ### Priority Delays - Advanced Timing Control
849
958
 
850
959
  Priority delays create "cool-down" periods after task completion based on the completed task's priority. This helps prevent resource overwhelming, implement rate limiting, and control timing between operations.
@@ -34,6 +34,9 @@ export class HoldMyTask extends EventEmitter {
34
34
  * @param {number} [options.tick=25] - Polling interval in milliseconds when smartScheduling is disabled
35
35
  * @param {number} [options.healingInterval=5000] - Self-healing check interval in milliseconds (smart scheduling only)
36
36
  * @param {Object} [options.priorities={}] - Priority-specific default configurations
37
+ * @param {number} [options.priorities[priority].concurrency] - Maximum concurrent tasks for this priority (defaults to global concurrency limit)
38
+ * @param {number} [options.priorities[priority].postDelay] - Delay after task completion before next task of same priority
39
+ * @param {number} [options.priorities[priority].startDelay] - Delay before task execution (pre-execution delay)
37
40
  * @param {Object} [options.coalescing] - Enhanced coalescing configuration (preferred over flat options)
38
41
  * @param {Object} [options.coalescing.defaults] - Default coalescing settings for all keys
39
42
  * @param {number} [options.coalescing.defaults.windowDuration=200] - Default window duration in milliseconds
@@ -52,12 +55,12 @@ export class HoldMyTask extends EventEmitter {
52
55
  * @example
53
56
  * // Enhanced configuration with priority defaults and extended coalescing
54
57
  * const queue = new HoldMyTask({
55
- * concurrency: 2,
58
+ * concurrency: 8, // Global maximum: 8 total tasks across all priorities
56
59
  * delays: { 0: 1000, 1: 500 },
57
60
  * priorities: {
58
- * 1: { postDelay: 100, startDelay: 0 }, // High priority: 100ms post-completion delay, immediate start
59
- * 2: { postDelay: 200, startDelay: 50 }, // Medium priority: 200ms post-completion delay, 50ms pre-execution delay
60
- * 3: { postDelay: 0, startDelay: 100 } // Low priority: no post-completion delay, 100ms pre-execution delay
61
+ * 1: { concurrency: 1, postDelay: 100, startDelay: 0 }, // Critical: Only 1 at a time, 100ms post-delay
62
+ * 2: { concurrency: 3, postDelay: 200, startDelay: 50 }, // Important: Up to 3 at a time, 200ms post-delay
63
+ * 3: { concurrency: 5, postDelay: 0, startDelay: 100 } // Background: Up to 5 at a time, 100ms pre-delay
61
64
  * },
62
65
  * coalescing: {
63
66
  * defaults: {
@@ -323,6 +326,7 @@ export class HoldMyTask extends EventEmitter {
323
326
  });
324
327
 
325
328
  this.running = new Set();
329
+ this.runningByPriority = new Map(); // Track running tasks per priority for concurrency limits
326
330
  this.tasks = new Map();
327
331
  this.nextId = 1;
328
332
  this.enqueueSeq = 1;
@@ -1652,13 +1656,13 @@ export class HoldMyTask extends EventEmitter {
1652
1656
  nextPending = this.pendingHeap.peek();
1653
1657
  }
1654
1658
 
1655
- // Start tasks up to concurrency limit
1659
+ // Start tasks up to concurrency limits (both global and per-priority)
1656
1660
  let hasWaitingTasks = false;
1657
1661
  const currentTime = this.now();
1658
1662
  const delay = this.lastCompletedPriority !== null ? (this.options.priorities[this.lastCompletedPriority]?.postDelay ?? 0) : 0;
1659
1663
  const delayActive = delay > 0 && currentTime < this.nextAvailableTime;
1660
1664
 
1661
- while (this.running.size < this.options.concurrency && this.readyHeap.size() > 0) {
1665
+ while (this.readyHeap.size() > 0) {
1662
1666
  const task = this.readyHeap.peek();
1663
1667
  if (!task) break;
1664
1668
 
@@ -1669,11 +1673,59 @@ export class HoldMyTask extends EventEmitter {
1669
1673
  continue; // Check next task
1670
1674
  }
1671
1675
 
1672
- const canStart = task.bypassDelay || !delayActive;
1676
+ // Check concurrency limits (both global and per-priority)
1677
+ const canStartConcurrency = this._canStartTask(task);
1678
+ const canStartDelay = task.bypassDelay || !delayActive;
1679
+ const canStart = canStartConcurrency && canStartDelay;
1673
1680
 
1674
1681
  if (canStart) {
1675
1682
  this.readyHeap.pop(); // Remove it from heap
1676
1683
  this._startTask(task);
1684
+ } else if (!canStartConcurrency) {
1685
+ // Can't start due to concurrency limits - look for other priorities that can run
1686
+ const heapArray = this.readyHeap.heap.slice(); // Copy heap array
1687
+ let foundStartableTask = false;
1688
+
1689
+ for (let i = 0; i < heapArray.length; i++) {
1690
+ const candidateTask = heapArray[i];
1691
+
1692
+ // Check if candidate task has expired
1693
+ if (candidateTask.expireAt && currentTime >= candidateTask.expireAt) {
1694
+ // Remove expired task and continue searching
1695
+ const remainingTasks = heapArray.filter((t) => t.id !== candidateTask.id);
1696
+ this.readyHeap.heap = [];
1697
+ for (const t of remainingTasks) {
1698
+ this.readyHeap.push(t);
1699
+ }
1700
+ this._expireTask(candidateTask);
1701
+ // Update heapArray for next iteration
1702
+ heapArray.splice(i, 1);
1703
+ i--; // Adjust index since we removed an item
1704
+ continue;
1705
+ }
1706
+
1707
+ // Check if this task can start (considering both concurrency and delay limits)
1708
+ const candidateCanStartConcurrency = this._canStartTask(candidateTask);
1709
+ const candidateCanStartDelay = candidateTask.bypassDelay || !delayActive;
1710
+
1711
+ if (candidateCanStartConcurrency && candidateCanStartDelay) {
1712
+ foundStartableTask = true;
1713
+ // Remove the task from heap and start it
1714
+ const remainingTasks = heapArray.filter((t) => t.id !== candidateTask.id);
1715
+ this.readyHeap.heap = [];
1716
+ for (const t of remainingTasks) {
1717
+ this.readyHeap.push(t);
1718
+ }
1719
+ this._startTask(candidateTask);
1720
+ break;
1721
+ }
1722
+ }
1723
+
1724
+ if (!foundStartableTask) {
1725
+ // No tasks can start due to concurrency limits
1726
+ hasWaitingTasks = true;
1727
+ break;
1728
+ }
1677
1729
  } else {
1678
1730
  // Can't start due to delay - check if there are any bypass tasks in the heap
1679
1731
  const heapArray = this.readyHeap.heap.slice(); // Copy heap array
@@ -1726,6 +1778,30 @@ export class HoldMyTask extends EventEmitter {
1726
1778
  }
1727
1779
  }
1728
1780
 
1781
+ /**
1782
+ * Checks if a task can start based on both global and per-priority concurrency limits.
1783
+ * @param {Object} task - The task to check
1784
+ * @returns {boolean} True if the task can start, false if concurrency limits prevent it
1785
+ * @private
1786
+ */
1787
+ _canStartTask(task) {
1788
+ // Check global concurrency limit
1789
+ if (this.running.size >= this.options.concurrency) {
1790
+ return false;
1791
+ }
1792
+
1793
+ // Check per-priority concurrency limit if configured
1794
+ const priorityConfig = this.options.priorities[task.priority];
1795
+ if (priorityConfig && typeof priorityConfig.concurrency === "number") {
1796
+ const runningForPriority = this.runningByPriority.get(task.priority) || 0;
1797
+ if (runningForPriority >= priorityConfig.concurrency) {
1798
+ return false;
1799
+ }
1800
+ }
1801
+
1802
+ return true;
1803
+ }
1804
+
1729
1805
  /**
1730
1806
  * Handles an expired task by removing it and calling appropriate error handling.
1731
1807
  * @param {Object} item - The expired task item
@@ -1780,9 +1856,12 @@ export class HoldMyTask extends EventEmitter {
1780
1856
  item.status = "running";
1781
1857
  item.startedAt = this.now();
1782
1858
  this.running.add(item);
1783
- this.emit("start", item);
1784
1859
 
1785
- // Create abort controller for timeout
1860
+ // Track per-priority running count
1861
+ const currentPriorityCount = this.runningByPriority.get(item.priority) || 0;
1862
+ this.runningByPriority.set(item.priority, currentPriorityCount + 1);
1863
+
1864
+ this.emit("start", item); // Create abort controller for timeout
1786
1865
  const abortController = new AbortController();
1787
1866
  let timeoutId;
1788
1867
 
@@ -1884,10 +1963,14 @@ export class HoldMyTask extends EventEmitter {
1884
1963
 
1885
1964
  this.running.delete(item);
1886
1965
 
1887
- // Clean up all finished tasks (completed, failed, canceled)
1888
- this.tasks.delete(item.id);
1966
+ // Update per-priority running count
1967
+ const currentPriorityCount = this.runningByPriority.get(item.priority) || 0;
1968
+ if (currentPriorityCount > 0) {
1969
+ this.runningByPriority.set(item.priority, currentPriorityCount - 1);
1970
+ }
1889
1971
 
1890
- // Update delay tracking after task completion
1972
+ // Clean up all finished tasks (completed, failed, canceled)
1973
+ this.tasks.delete(item.id); // Update delay tracking after task completion
1891
1974
  const completedPriority = item.priority;
1892
1975
  const taskDelay = item.delay;
1893
1976
  const priorityDelay = this.options.priorities[completedPriority]?.postDelay ?? 0;
@@ -2418,9 +2501,33 @@ export class HoldMyTask extends EventEmitter {
2418
2501
  concurrency: this.options.concurrency,
2419
2502
  currentConcurrency: this.running.size,
2420
2503
  tick: this.options.tick,
2421
- nextActiveDelay: this.nextAvailableTime > now ? this.nextAvailableTime - now : null
2504
+ nextActiveDelay: this.nextAvailableTime > now ? this.nextAvailableTime - now : null,
2505
+ priorityConcurrency: {}
2422
2506
  };
2423
2507
 
2508
+ // Add per-priority concurrency information
2509
+ for (const [priority, count] of this.runningByPriority.entries()) {
2510
+ if (count > 0) {
2511
+ const priorityConfig = this.options.priorities[priority];
2512
+ schedulerState.priorityConcurrency[priority] = {
2513
+ running: count,
2514
+ limit: priorityConfig?.concurrency || this.options.concurrency,
2515
+ available: (priorityConfig?.concurrency || this.options.concurrency) - count
2516
+ };
2517
+ }
2518
+ }
2519
+
2520
+ // Also show configured priority limits even if nothing is running
2521
+ for (const [priority, config] of Object.entries(this.options.priorities)) {
2522
+ if (config.concurrency && !schedulerState.priorityConcurrency[priority]) {
2523
+ schedulerState.priorityConcurrency[priority] = {
2524
+ running: 0,
2525
+ limit: config.concurrency,
2526
+ available: config.concurrency
2527
+ };
2528
+ }
2529
+ }
2530
+
2424
2531
  // Get coalescing information
2425
2532
  const coalescingInfo = {};
2426
2533
  for (const [key, groups] of this.coalescingGroups.entries()) {
@@ -2653,6 +2760,30 @@ export class HoldMyTask extends EventEmitter {
2653
2760
  };
2654
2761
  }
2655
2762
 
2763
+ // Get per-priority concurrency information
2764
+ const priorityConcurrency = {};
2765
+ for (const [priority, count] of this.runningByPriority.entries()) {
2766
+ if (count > 0) {
2767
+ const priorityConfig = this.options.priorities[priority];
2768
+ priorityConcurrency[priority] = {
2769
+ running: count,
2770
+ limit: priorityConfig?.concurrency || this.options.concurrency,
2771
+ available: (priorityConfig?.concurrency || this.options.concurrency) - count
2772
+ };
2773
+ }
2774
+ }
2775
+
2776
+ // Also include configured priority limits even if nothing is running
2777
+ for (const [priority, config] of Object.entries(this.options.priorities)) {
2778
+ if (config.concurrency && !priorityConcurrency[priority]) {
2779
+ priorityConcurrency[priority] = {
2780
+ running: 0,
2781
+ limit: config.concurrency,
2782
+ available: config.concurrency
2783
+ };
2784
+ }
2785
+ }
2786
+
2656
2787
  return {
2657
2788
  timestamp: now,
2658
2789
  isActive: this.isActive,
@@ -2660,6 +2791,7 @@ export class HoldMyTask extends EventEmitter {
2660
2791
  concurrency: this.options.concurrency,
2661
2792
  currentConcurrency: this.running.size,
2662
2793
  availableSlots: this.options.concurrency - this.running.size,
2794
+ priorityConcurrency: priorityConcurrency,
2663
2795
  timers: {
2664
2796
  schedulerInterval: this.schedulerInterval,
2665
2797
  schedulerTimeout: this.schedulerTimeout,
@@ -2711,6 +2843,14 @@ export class HoldMyTask extends EventEmitter {
2711
2843
  console.log(` Ready: ${inspection.totals.readyTasks}`);
2712
2844
  console.log(` Running: ${inspection.totals.runningTasks}`);
2713
2845
 
2846
+ // Show per-priority concurrency information if configured
2847
+ if (Object.keys(inspection.scheduler.priorityConcurrency).length > 0) {
2848
+ console.log("\n--- Priority Concurrency ---");
2849
+ Object.entries(inspection.scheduler.priorityConcurrency).forEach(([priority, info]) => {
2850
+ console.log(` Priority ${priority}: ${info.running}/${info.limit} (${info.available} available)`);
2851
+ });
2852
+ }
2853
+
2714
2854
  console.log("\n--- Timer State ---");
2715
2855
  console.log(`Interval: ${inspection.timers.schedulerInterval.active ? `Active (${inspection.timers.schedulerInterval.id})` : "None"}`);
2716
2856
  console.log(`Timeout: ${inspection.timers.schedulerTimeout.active ? `Active (${inspection.timers.schedulerTimeout.id})` : "None"}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cldmv/holdmytask",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "A tiny task queue that waits until your task is ready",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.mjs",
@@ -1 +1 @@
1
- {"version":3,"file":"hold-my-task.d.mts","sourceRoot":"","sources":["../../dist/hold-my-task.mjs"],"names":[],"mappings":"AAgBA;;;;;GAKG;AACH;IACC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6DG;IAEH;;;;;;;;OAQG;IACH,yCAwCC;IAwND;;;;;;;;;OASG;IACH,uBAGC;IAnOD,0BAaC;IAED;;;;OAIG;IACH,wBAGC;IAFA,mBAAqB;IAItB;;;;;OAKG;IACH,yBAUC;IAED;;;;OAIG;IACH,0BAoKC;IA1DA,aAuBC;IAGD,qBAA+D;IAC/D,mBAIE;IAEF,kBAAwB;IACxB,qBAAsB;IACtB,eAAe;IACf,mBAAmB;IACnB,kBAAqB;IACrB,mBAAsB;IACtB,2BAAiC;IACjC,uBAA0B;IAG1B,iCAA4B;IAC5B,gCAA2B;IAC3B,yBAAyB;IAGzB,2BAAsB;IAGtB,gCAAiC;IACjC,yCAA0C;IAC1C,oBAAoB;IAsBrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACH,4CA1CW,cAAe,YAEvB;QAAgC,EAAE,GAA1B,MAAM,GAAC,MAAM;QACI,QAAQ,GAAzB,MAAM;QACW,SAAS,GAA1B,MAAM;QACW,KAAK,GAAtB,MAAM;QACgB,MAAM,GAA5B,WAAW;QACM,OAAO,GAAxB,MAAM;QACW,MAAM,GAAvB,MAAM;QACW,KAAK,GAAtB,MAAM;QACY,WAAW,GAA7B,OAAO;QACU,aAAa,GAA9B,MAAM;QACW,wBAAwB,GAAzC,MAAM;QACW,kBAAkB,GAAnC,MAAM;QACY,2BAA2B,GAA7C,OAAO;QACW,4BAA4B,GAA9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