@dudousxd/nestjs-durable 0.68.0 → 0.69.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/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -1108,7 +1108,8 @@ interface DurableModuleSharedOptions {
|
|
|
1108
1108
|
/**
|
|
1109
1109
|
* How many tasks a worker role's co-located/thin consumer runs concurrently PER SUBSCRIBED QUEUE
|
|
1110
1110
|
* (BullMQ Worker concurrency — the same limit is applied to every per-name queue the single
|
|
1111
|
-
* `runRedisWorker` call starts
|
|
1111
|
+
* `runRedisWorker` call starts, except the names {@link concurrencyByHandler} overrides).
|
|
1112
|
+
* Defaults to 1. Raise it so a fanned-out batch (e.g. the N remote
|
|
1112
1113
|
* steps of a `gather`) runs in parallel instead of serially.
|
|
1113
1114
|
*
|
|
1114
1115
|
* Pass `'adaptive'` (or `{ mode:'adaptive', ... }`) to let the consumer self-tune its concurrency
|
|
@@ -1117,10 +1118,13 @@ interface DurableModuleSharedOptions {
|
|
|
1117
1118
|
*/
|
|
1118
1119
|
concurrency?: ConcurrencyOption;
|
|
1119
1120
|
/**
|
|
1120
|
-
* Per-handler concurrency override
|
|
1121
|
-
* (
|
|
1122
|
-
*
|
|
1123
|
-
*
|
|
1121
|
+
* Per-handler concurrency override for a worker role's consumer (co-located or thin), keyed by
|
|
1122
|
+
* the exact `@Workflow({ name })` / `@Step(name)` string, namespace included (e.g.
|
|
1123
|
+
* `'agent.opencode.run'`, never the sanitized queue token): that name's queue runs at this limit,
|
|
1124
|
+
* every other queue at {@link concurrency} (then 1). A number or an adaptive config; an
|
|
1125
|
+
* overridden queue runs on its own controller and reports its own status on the heartbeat. A
|
|
1126
|
+
* name this process does not register is ignored, with one warning per name per process.
|
|
1127
|
+
* Ignored for a plain operator.
|
|
1124
1128
|
*/
|
|
1125
1129
|
concurrencyByHandler?: Record<string, ConcurrencyOption>;
|
|
1126
1130
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1108,7 +1108,8 @@ interface DurableModuleSharedOptions {
|
|
|
1108
1108
|
/**
|
|
1109
1109
|
* How many tasks a worker role's co-located/thin consumer runs concurrently PER SUBSCRIBED QUEUE
|
|
1110
1110
|
* (BullMQ Worker concurrency — the same limit is applied to every per-name queue the single
|
|
1111
|
-
* `runRedisWorker` call starts
|
|
1111
|
+
* `runRedisWorker` call starts, except the names {@link concurrencyByHandler} overrides).
|
|
1112
|
+
* Defaults to 1. Raise it so a fanned-out batch (e.g. the N remote
|
|
1112
1113
|
* steps of a `gather`) runs in parallel instead of serially.
|
|
1113
1114
|
*
|
|
1114
1115
|
* Pass `'adaptive'` (or `{ mode:'adaptive', ... }`) to let the consumer self-tune its concurrency
|
|
@@ -1117,10 +1118,13 @@ interface DurableModuleSharedOptions {
|
|
|
1117
1118
|
*/
|
|
1118
1119
|
concurrency?: ConcurrencyOption;
|
|
1119
1120
|
/**
|
|
1120
|
-
* Per-handler concurrency override
|
|
1121
|
-
* (
|
|
1122
|
-
*
|
|
1123
|
-
*
|
|
1121
|
+
* Per-handler concurrency override for a worker role's consumer (co-located or thin), keyed by
|
|
1122
|
+
* the exact `@Workflow({ name })` / `@Step(name)` string, namespace included (e.g.
|
|
1123
|
+
* `'agent.opencode.run'`, never the sanitized queue token): that name's queue runs at this limit,
|
|
1124
|
+
* every other queue at {@link concurrency} (then 1). A number or an adaptive config; an
|
|
1125
|
+
* overridden queue runs on its own controller and reports its own status on the heartbeat. A
|
|
1126
|
+
* name this process does not register is ignored, with one warning per name per process.
|
|
1127
|
+
* Ignored for a plain operator.
|
|
1124
1128
|
*/
|
|
1125
1129
|
concurrencyByHandler?: Record<string, ConcurrencyOption>;
|
|
1126
1130
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1481,6 +1481,9 @@ var ThinWorkerBootstrap = class {
|
|
|
1481
1481
|
...options.concurrency !== void 0 ? {
|
|
1482
1482
|
concurrency: options.concurrency
|
|
1483
1483
|
} : {},
|
|
1484
|
+
...options.concurrencyByHandler !== void 0 ? {
|
|
1485
|
+
concurrencyByHandler: options.concurrencyByHandler
|
|
1486
|
+
} : {},
|
|
1484
1487
|
...options.lockDuration !== void 0 ? {
|
|
1485
1488
|
lockDuration: options.lockDuration
|
|
1486
1489
|
} : {},
|
|
@@ -1845,6 +1848,9 @@ var InAppWorkerBootstrap = class {
|
|
|
1845
1848
|
...options.concurrency !== void 0 ? {
|
|
1846
1849
|
concurrency: options.concurrency
|
|
1847
1850
|
} : {},
|
|
1851
|
+
...options.concurrencyByHandler !== void 0 ? {
|
|
1852
|
+
concurrencyByHandler: options.concurrencyByHandler
|
|
1853
|
+
} : {},
|
|
1848
1854
|
...options.lockDuration !== void 0 ? {
|
|
1849
1855
|
lockDuration: options.lockDuration
|
|
1850
1856
|
} : {},
|