@workflow/core 5.2.1 → 5.2.2
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 +3 -1
- package/dist/private.d.ts +5 -3
- package/dist/private.d.ts.map +1 -1
- package/dist/private.js +22 -12
- package/dist/runtime/constants.d.ts +1 -37
- package/dist/runtime/constants.d.ts.map +1 -1
- package/dist/runtime/constants.js +2 -40
- package/dist/runtime/helpers.d.ts +4 -5
- package/dist/runtime/helpers.d.ts.map +1 -1
- package/dist/runtime/helpers.js +5 -6
- package/dist/runtime/quickjs-entrypoint.d.ts.map +1 -1
- package/dist/runtime/quickjs-entrypoint.js +13 -130
- package/dist/runtime/suspension-handler.d.ts +6 -10
- package/dist/runtime/suspension-handler.d.ts.map +1 -1
- package/dist/runtime/suspension-handler.js +14 -123
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +17 -179
- package/dist/telemetry/semantic-conventions.d.ts +0 -18
- package/dist/telemetry/semantic-conventions.d.ts.map +1 -1
- package/dist/telemetry/semantic-conventions.js +1 -15
- package/dist/version.d.ts +1 -1
- package/dist/version.js +2 -2
- package/dist/workflow/attribute-dispatcher.d.ts.map +1 -1
- package/dist/workflow/attribute-dispatcher.js +25 -3
- package/package.json +3 -3
|
@@ -40,15 +40,12 @@ export interface SuspensionHandlerParams {
|
|
|
40
40
|
/** One-shot telemetry reporter, activated only after replay has recovered. */
|
|
41
41
|
replayRecoveryReporter?: ReplayRecoveryReporter;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* publish, and the queue message carries the serialized step input
|
|
47
|
-
* (`stepInput`) so the consumer can idempotently re-ensure the event if the
|
|
48
|
-
* direct write failed transiently. Steps queued this way are reported in
|
|
43
|
+
* Step dispatch target. When provided, the batched fan-out publishes the
|
|
44
|
+
* step-execution queue message for each eagerly created step after its
|
|
45
|
+
* chunk commits, and reports those steps in
|
|
49
46
|
* {@link SuspensionHandlerResult.queuedStepCorrelationIds} so the caller
|
|
50
47
|
* skips them in its own dispatch pass. Omitted by callers that must not
|
|
51
|
-
* queue (terminal drain, tests); creates then
|
|
48
|
+
* queue (terminal drain, tests); creates then never publish.
|
|
52
49
|
*/
|
|
53
50
|
stepDispatch?: {
|
|
54
51
|
/** The unified workflow queue this run's step messages are published to. */
|
|
@@ -124,9 +121,8 @@ export interface SuspensionHandlerResult {
|
|
|
124
121
|
failedStepCorrelationIds: Set<string>;
|
|
125
122
|
/**
|
|
126
123
|
* Correlation IDs of steps this suspension call already published
|
|
127
|
-
* step-execution queue messages for
|
|
128
|
-
*
|
|
129
|
-
* publish). The caller MUST NOT dispatch these again: the message is
|
|
124
|
+
* step-execution queue messages for (the batched fan-out's per-chunk
|
|
125
|
+
* publishes). The caller MUST NOT dispatch these again: the message is
|
|
130
126
|
* already out (a duplicate would be deduped by its idempotency key, but
|
|
131
127
|
* costs a wasted round-trip). Empty when {@link SuspensionHandlerParams.stepDispatch}
|
|
132
128
|
* was not provided or no step was eligible.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suspension-handler.d.ts","sourceRoot":"","sources":["../../src/runtime/suspension-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAU/C,OAAO,EAKL,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"suspension-handler.d.ts","sourceRoot":"","sources":["../../src/runtime/suspension-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAU/C,OAAO,EAKL,KAAK,cAAc,EAKnB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,KAAK,EACX,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAGV,uBAAuB,EAEvB,kBAAkB,EACnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAEL,KAAK,kBAA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