@fluidgrids/workflows 2026.1028.2 → 2026.1030.1
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 +181 -11
- package/dist/{activation-BBh1p82z.d.cts → activation-DqUfpHzk.d.cts} +1 -1
- package/dist/{activation-DnhG7SmF.d.ts → activation-xpx1oWuo.d.ts} +1 -1
- package/dist/{chunk-VRHHBPT6.js → chunk-2D3MYIIF.js} +1212 -128
- package/dist/chunk-3U2NU7YC.cjs +124 -0
- package/dist/{chunk-NEIUQASE.cjs → chunk-4QKB4ARC.cjs} +3 -3
- package/dist/{chunk-GBQ33SIZ.cjs → chunk-54FLQNUM.cjs} +12 -1
- package/dist/chunk-5HIVIV53.js +330 -0
- package/dist/chunk-5MFVJM76.js +1222 -0
- package/dist/{chunk-JD2VQIDZ.cjs → chunk-672KMMBK.cjs} +2 -2
- package/dist/{chunk-C5OLWZ42.js → chunk-6A2FGSUS.js} +22 -14
- package/dist/{chunk-XKJA7KX3.js → chunk-6OLN6BMB.js} +52 -3
- package/dist/{chunk-6FSHT5IL.js → chunk-7EZIANC7.js} +1 -1
- package/dist/{chunk-2J6TF7YI.cjs → chunk-A5SXCA62.cjs} +10 -3
- package/dist/{chunk-BO6OVILK.js → chunk-AC6ZEXVR.js} +10 -4
- package/dist/{chunk-ABFZWYHT.js → chunk-AE5Q6ZAJ.js} +315 -50
- package/dist/chunk-C4F5KJTI.js +293 -0
- package/dist/{chunk-IISBRUWJ.js → chunk-G5H32GIG.js} +1 -1
- package/dist/chunk-GEQDGUGB.cjs +2719 -0
- package/dist/{chunk-XHXIDVEC.js → chunk-HCM7ZC7Q.js} +1 -1
- package/dist/chunk-HMZUGSMU.cjs +1554 -0
- package/dist/{chunk-SAOBPYYJ.cjs → chunk-IQPXHQQQ.cjs} +8 -4
- package/dist/{chunk-P6TA5EZT.cjs → chunk-ISOIA7NV.cjs} +335 -58
- package/dist/chunk-JSC75O5C.cjs +167 -0
- package/dist/chunk-M272AHEX.js +25 -0
- package/dist/{chunk-BD7ZPG53.js → chunk-NWQ5WRLE.js} +10 -2
- package/dist/chunk-ODZ2IAR2.cjs +1247 -0
- package/dist/chunk-Q4MWQNJK.cjs +28 -0
- package/dist/{chunk-HWJZVOG7.js → chunk-SR7TR5KX.js} +6 -2
- package/dist/{chunk-FEW3JBYA.cjs → chunk-TCTE7DX5.cjs} +3 -3
- package/dist/{chunk-623FVQSN.cjs → chunk-TYF56RGB.cjs} +123 -0
- package/dist/chunk-VA4OFR72.cjs +324 -0
- package/dist/chunk-VU5S5A7V.js +150 -0
- package/dist/chunk-YEHR4NNE.js +1522 -0
- package/dist/{chunk-FMSW2HDF.cjs → chunk-ZCGKGDCL.cjs} +23 -15
- package/dist/codegen/index.d.cts +2 -2
- package/dist/codegen/index.d.ts +2 -2
- package/dist/collect-6NIEufHd.d.ts +103 -0
- package/dist/collect-CcTCKqx6.d.cts +103 -0
- package/dist/{file-BOoHZgoQ.d.cts → file-BxYpwjRQ.d.cts} +1007 -21
- package/dist/{file-yuPCFU5b.d.ts → file-CFdPQJI9.d.ts} +1007 -21
- package/dist/history/index.cjs +375 -86
- package/dist/history/index.d.cts +590 -12
- package/dist/history/index.d.ts +590 -12
- package/dist/history/index.js +50 -4
- package/dist/index.cjs +156 -50
- package/dist/index.d.cts +38 -58
- package/dist/index.d.ts +38 -58
- package/dist/index.js +6 -4
- package/dist/interceptors-CNcr2dlk.d.ts +159 -0
- package/dist/interceptors-CqkNZVfI.d.cts +159 -0
- package/dist/ir/index.cjs +362 -38
- package/dist/ir/index.d.cts +282 -7
- package/dist/ir/index.d.ts +282 -7
- package/dist/ir/index.js +329 -23
- package/dist/{lower-BzmUz0sq.d.cts → lower-BtRfIW2A.d.cts} +56 -8
- package/dist/{lower-_-iT4HYs.d.ts → lower-CpsMFOFX.d.ts} +56 -8
- package/dist/{manifest-C8N6HDYl.d.ts → manifest-D-I_twys.d.ts} +1 -1
- package/dist/{manifest-0OLw0i7k.d.cts → manifest-DahBQVM8.d.cts} +1 -1
- package/dist/node-evaluator-DGQDPSPI.cjs +24 -0
- package/dist/node-evaluator-LEEVD7H7.js +14 -0
- package/dist/payload-fields-BVRQn2yH.d.cts +122 -0
- package/dist/payload-fields-oOBWxDiG.d.ts +122 -0
- package/dist/quickjs/index.cjs +28 -27
- package/dist/quickjs/index.d.cts +6 -6
- package/dist/quickjs/index.d.ts +6 -6
- package/dist/quickjs/index.js +10 -9
- package/dist/roundtrip/index.cjs +259 -51
- package/dist/roundtrip/index.d.cts +100 -9
- package/dist/roundtrip/index.d.ts +100 -9
- package/dist/roundtrip/index.js +177 -11
- package/dist/runtime/index.cjs +21 -20
- package/dist/runtime/index.d.cts +184 -15
- package/dist/runtime/index.d.ts +184 -15
- package/dist/runtime/index.js +8 -7
- package/dist/testing/index.cjs +1122 -115
- package/dist/testing/index.d.cts +294 -13
- package/dist/testing/index.d.ts +294 -13
- package/dist/testing/index.js +1086 -84
- package/dist/{types-DV-HX_Gt.d.ts → types-Bv2i4cBX.d.cts} +244 -33
- package/dist/{types-CpBBjaGX.d.cts → types-DGx-b9eq.d.ts} +244 -33
- package/dist/{types-BGoPzgcl.d.ts → types-V7jEEUaL.d.cts} +20 -1
- package/dist/{types-BGoPzgcl.d.cts → types-V7jEEUaL.d.ts} +20 -1
- package/dist/{workflow-Bpr3vnA_.d.ts → workflow-B18OeF7g.d.ts} +2 -2
- package/dist/workflow-BGnv8SS6.d.ts +803 -0
- package/dist/{workflow-FXUkpIBc.d.cts → workflow-BJPFv3cp.d.cts} +2 -2
- package/dist/workflow-DS32Gtws.d.cts +803 -0
- package/fixtures/histories/activity-options-updated.history.json +159 -0
- package/fixtures/histories/activity-paused-unpaused.history.json +160 -0
- package/fixtures/histories/auto-upgrade-patched.history.json +276 -0
- package/fixtures/histories/benign-failure.history.json +146 -0
- package/fixtures/histories/cancel-activity-try-cancel.history.json +150 -0
- package/fixtures/histories/child-cancel-wait-requested.history.json +217 -0
- package/fixtures/histories/child-options-roundtrip.history.json +192 -0
- package/fixtures/histories/codec-opaque.history.json +229 -0
- package/fixtures/histories/continue-as-new-last-result.history.json +86 -0
- package/fixtures/histories/continue-as-new-options.history.json +99 -0
- package/fixtures/histories/continue-as-new-r1-long-task-queue.history.json +78 -0
- package/fixtures/histories/continue-as-new-r1-retry-options.history.json +83 -0
- package/fixtures/histories/dynamic-workflow.history.json +150 -0
- package/fixtures/histories/execution-timeout-chain.history.json +98 -0
- package/fixtures/histories/external-cancel-resolved.history.json +123 -0
- package/fixtures/histories/external-cancel-unknown-target.history.json +127 -0
- package/fixtures/histories/failure-error-types-fails-run.history.json +144 -0
- package/fixtures/histories/handler-drain-warn.history.json +222 -0
- package/fixtures/histories/heartbeat-details-on-retry.history.json +145 -0
- package/fixtures/histories/interceptor-headers.history.json +339 -0
- package/fixtures/histories/local-activity-abandoned-at-completion.history.json +73 -0
- package/fixtures/histories/local-activity-cancelled-in-scope.history.json +118 -0
- package/fixtures/histories/local-activity-completed.history.json +157 -0
- package/fixtures/histories/local-activity-failed.history.json +93 -0
- package/fixtures/histories/local-activity-retry-in-task.history.json +88 -0
- package/fixtures/histories/query-custom.history.json +213 -0
- package/fixtures/histories/query-default-handler.history.json +120 -0
- package/fixtures/histories/reset-forked-reapplied-signals.history.json +239 -0
- package/fixtures/histories/reset-reapplied-update-admitted.history.json +228 -0
- package/fixtures/histories/run-retry-last-failure.history.json +90 -0
- package/fixtures/histories/run-timeout.history.json +159 -0
- package/fixtures/histories/schedule-to-start-timeout.history.json +132 -0
- package/fixtures/histories/search-attributes-upserted.history.json +177 -0
- package/fixtures/histories/start-delay-signal-ends-delay.history.json +155 -0
- package/fixtures/histories/typeerror-task-retry-100.history.json +137 -0
- package/fixtures/histories/update-accepted-completed.history.json +45 -30
- package/fixtures/histories/update-default-handler.history.json +246 -0
- package/fixtures/histories/update-handler-awaits-activity.history.json +196 -0
- package/fixtures/histories/update-not-handled.history.json +138 -0
- package/fixtures/histories/update-rejected-no-event.history.json +190 -0
- package/fixtures/histories/update-with-start-admitted.history.json +150 -0
- package/fixtures/histories/user-activity-cancel.history.json +149 -0
- package/fixtures/histories/user-activity-retry.history.json +143 -0
- package/fixtures/histories/user-activity.history.json +149 -0
- package/package.json +1 -1
- package/schema/bridge-v2.schema.json +1062 -0
- package/schema/history-file.schema.json +538 -83
- package/schema/ir-v2.schema.json +290 -0
- package/schema/payload-fields.json +162 -0
- package/schema/run-event.schema.json +503 -82
- package/schema/workflow-command.schema.json +372 -69
- package/schema/workflow-task.schema.json +924 -171
- package/dist/assemble-BLqQ8lSu.d.cts +0 -39
- package/dist/assemble-DWgaXHd-.d.ts +0 -39
- package/dist/chunk-DHTLALBL.cjs +0 -80
- package/dist/chunk-DJYMDLV5.js +0 -227
- package/dist/chunk-I5LR3D2K.js +0 -869
- package/dist/chunk-M4BBAERY.cjs +0 -1635
- package/dist/chunk-N23SKIG4.js +0 -73
- package/dist/chunk-PZCVF76Q.cjs +0 -868
- package/dist/chunk-QQ6ULXHI.cjs +0 -885
- package/dist/chunk-UK3WM7YZ.cjs +0 -75
- package/dist/chunk-VOKMAAJP.js +0 -848
- package/dist/node-evaluator-4MSDKWOG.cjs +0 -22
- package/dist/node-evaluator-SX4LEYQC.js +0 -12
- package/dist/workflow-C2a05WUJ.d.ts +0 -444
- package/dist/workflow-J-yYixny.d.cts +0 -444
|
@@ -159,6 +159,7 @@
|
|
|
159
159
|
"workflowKey",
|
|
160
160
|
"workflowId"
|
|
161
161
|
],
|
|
162
|
+
"description": "The open run of a workflow id, following its continue-as-new chain; firstRunId pins the chain (R2).",
|
|
162
163
|
"properties": {
|
|
163
164
|
"workflowKey": {
|
|
164
165
|
"type": "string",
|
|
@@ -169,12 +170,82 @@
|
|
|
169
170
|
"type": "string",
|
|
170
171
|
"minLength": 1,
|
|
171
172
|
"maxLength": 256
|
|
173
|
+
},
|
|
174
|
+
"firstRunId": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"minLength": 1,
|
|
177
|
+
"maxLength": 256
|
|
172
178
|
}
|
|
173
179
|
},
|
|
174
180
|
"additionalProperties": false
|
|
175
181
|
}
|
|
176
182
|
]
|
|
177
183
|
},
|
|
184
|
+
"runRetryPolicy": {
|
|
185
|
+
"type": "object",
|
|
186
|
+
"required": [
|
|
187
|
+
"initialDelayMs"
|
|
188
|
+
],
|
|
189
|
+
"description": "Run-level retry (11 §2.17), in milliseconds. maxAttempts counts every attempt; absent means unlimited, bounded by the execution timeout.",
|
|
190
|
+
"properties": {
|
|
191
|
+
"maxAttempts": {
|
|
192
|
+
"type": "integer",
|
|
193
|
+
"minimum": 1
|
|
194
|
+
},
|
|
195
|
+
"initialDelayMs": {
|
|
196
|
+
"type": "integer",
|
|
197
|
+
"minimum": 0
|
|
198
|
+
},
|
|
199
|
+
"backoffMultiplier": {
|
|
200
|
+
"type": "number",
|
|
201
|
+
"minimum": 1
|
|
202
|
+
},
|
|
203
|
+
"maxDelayMs": {
|
|
204
|
+
"type": "integer",
|
|
205
|
+
"minimum": 0
|
|
206
|
+
},
|
|
207
|
+
"retryOnErrorTypes": {
|
|
208
|
+
"type": "array",
|
|
209
|
+
"items": {
|
|
210
|
+
"enum": [
|
|
211
|
+
"TIMEOUT",
|
|
212
|
+
"TRANSIENT",
|
|
213
|
+
"DEPENDENCY",
|
|
214
|
+
"AUTHORIZATION",
|
|
215
|
+
"VALIDATION",
|
|
216
|
+
"PERMANENT",
|
|
217
|
+
"UNKNOWN"
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"nonRetryableErrorTypes": {
|
|
222
|
+
"type": "array",
|
|
223
|
+
"items": {
|
|
224
|
+
"type": "string"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"additionalProperties": false
|
|
229
|
+
},
|
|
230
|
+
"timeouts": {
|
|
231
|
+
"type": "object",
|
|
232
|
+
"description": "The three workflow timeouts (11 §2.20), in milliseconds.",
|
|
233
|
+
"properties": {
|
|
234
|
+
"executionTimeout": {
|
|
235
|
+
"type": "integer",
|
|
236
|
+
"minimum": 0
|
|
237
|
+
},
|
|
238
|
+
"runTimeout": {
|
|
239
|
+
"type": "integer",
|
|
240
|
+
"minimum": 0
|
|
241
|
+
},
|
|
242
|
+
"workflowTaskTimeout": {
|
|
243
|
+
"type": "integer",
|
|
244
|
+
"minimum": 0
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"additionalProperties": false
|
|
248
|
+
},
|
|
178
249
|
"childOptions": {
|
|
179
250
|
"type": "object",
|
|
180
251
|
"required": [
|
|
@@ -236,14 +307,119 @@
|
|
|
236
307
|
"startDelay": {
|
|
237
308
|
"type": "integer",
|
|
238
309
|
"minimum": 0
|
|
310
|
+
},
|
|
311
|
+
"retry": {
|
|
312
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
313
|
+
},
|
|
314
|
+
"versioningBehavior": {
|
|
315
|
+
"enum": [
|
|
316
|
+
"PINNED",
|
|
317
|
+
"AUTO_UPGRADE"
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"idReusePolicy": {
|
|
321
|
+
"enum": [
|
|
322
|
+
"ALLOW_DUPLICATE",
|
|
323
|
+
"ALLOW_DUPLICATE_FAILED_ONLY",
|
|
324
|
+
"REJECT_DUPLICATE"
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
"idConflictPolicy": {
|
|
328
|
+
"enum": [
|
|
329
|
+
"FAIL",
|
|
330
|
+
"USE_EXISTING",
|
|
331
|
+
"TERMINATE_EXISTING"
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
"fairnessKey": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"minLength": 1,
|
|
337
|
+
"maxLength": 255,
|
|
338
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
339
|
+
},
|
|
340
|
+
"fairnessWeight": {
|
|
341
|
+
"type": "number",
|
|
342
|
+
"minimum": 0.1,
|
|
343
|
+
"maximum": 10,
|
|
344
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
239
345
|
}
|
|
240
346
|
}
|
|
241
347
|
},
|
|
348
|
+
"legacyCanRetryPolicy": {
|
|
349
|
+
"type": "object",
|
|
350
|
+
"required": [
|
|
351
|
+
"retryDelay"
|
|
352
|
+
],
|
|
353
|
+
"description": "The R1 activity-shaped CONTINUE_AS_NEW retry: whatever explicitRetryPolicy wrote from a Partial<RetryPolicy>, so numbers carry no integer or minimum constraint. It never had a meaning, and the service ignores it.",
|
|
354
|
+
"properties": {
|
|
355
|
+
"maxRetries": {
|
|
356
|
+
"type": "number"
|
|
357
|
+
},
|
|
358
|
+
"retryDelay": {
|
|
359
|
+
"type": "number"
|
|
360
|
+
},
|
|
361
|
+
"backoffMultiplier": {
|
|
362
|
+
"type": "number"
|
|
363
|
+
},
|
|
364
|
+
"maxDelay": {
|
|
365
|
+
"type": "number"
|
|
366
|
+
},
|
|
367
|
+
"retryOnErrorTypes": {
|
|
368
|
+
"type": "array",
|
|
369
|
+
"items": {
|
|
370
|
+
"type": "string"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"nonRetryableErrorTypes": {
|
|
374
|
+
"type": "array",
|
|
375
|
+
"items": {
|
|
376
|
+
"type": "string"
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"additionalProperties": false
|
|
381
|
+
},
|
|
382
|
+
"canOptions": {
|
|
383
|
+
"type": "object",
|
|
384
|
+
"description": "Options of a CONTINUE_AS_NEW command (C-SCHEMA, frozen in R2). retry is the R2 run-retry policy of the new run, or the R1 activity shape (retryDelay, maxRetries, maxDelay) that R1 bundles wrote and R2 bundles still write for that shape: it never had a meaning, and the service ignores it instead of reading it as a run-retry policy.",
|
|
385
|
+
"properties": {
|
|
386
|
+
"taskQueue": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"minLength": 1,
|
|
389
|
+
"maxLength": 256
|
|
390
|
+
},
|
|
391
|
+
"retry": {
|
|
392
|
+
"oneOf": [
|
|
393
|
+
{
|
|
394
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"$ref": "#/$defs/legacyCanRetryPolicy"
|
|
398
|
+
}
|
|
399
|
+
]
|
|
400
|
+
},
|
|
401
|
+
"workflowTaskTimeout": {
|
|
402
|
+
"type": "integer",
|
|
403
|
+
"minimum": 0
|
|
404
|
+
},
|
|
405
|
+
"context": {
|
|
406
|
+
"type": "object"
|
|
407
|
+
},
|
|
408
|
+
"versioningBehavior": {
|
|
409
|
+
"enum": [
|
|
410
|
+
"PINNED",
|
|
411
|
+
"AUTO_UPGRADE"
|
|
412
|
+
]
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"additionalProperties": false
|
|
416
|
+
},
|
|
242
417
|
"headers": {
|
|
243
418
|
"type": "object",
|
|
244
419
|
"additionalProperties": {
|
|
245
420
|
"type": "string"
|
|
246
|
-
}
|
|
421
|
+
},
|
|
422
|
+
"description": "Interceptor headers (11 §2.10): string values; a user activity carries at most 16 KiB of JSON (checked by validateCommands)."
|
|
247
423
|
},
|
|
248
424
|
"payload_WORKFLOW_STARTED": {
|
|
249
425
|
"type": "object",
|
|
@@ -345,6 +521,54 @@
|
|
|
345
521
|
"type": "string",
|
|
346
522
|
"minLength": 1,
|
|
347
523
|
"maxLength": 256
|
|
524
|
+
},
|
|
525
|
+
"startDelayMs": {
|
|
526
|
+
"type": "integer",
|
|
527
|
+
"minimum": 0,
|
|
528
|
+
"description": "R2: the start delay of a delayed run (11 §2.23); the first task waits for it."
|
|
529
|
+
},
|
|
530
|
+
"runAttempt": {
|
|
531
|
+
"type": "integer",
|
|
532
|
+
"minimum": 1,
|
|
533
|
+
"description": "R2: the run-level retry attempt (11 §2.17), 1-based."
|
|
534
|
+
},
|
|
535
|
+
"businessId": {
|
|
536
|
+
"type": "string",
|
|
537
|
+
"description": "R2: the workflow id (11 §2.1), stored as WorkflowRun.businessId."
|
|
538
|
+
},
|
|
539
|
+
"workflowId": {
|
|
540
|
+
"type": "string",
|
|
541
|
+
"description": "R2: the same value as businessId."
|
|
542
|
+
},
|
|
543
|
+
"timeouts": {
|
|
544
|
+
"$ref": "#/$defs/timeouts"
|
|
545
|
+
},
|
|
546
|
+
"retry": {
|
|
547
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
548
|
+
},
|
|
549
|
+
"priority": {
|
|
550
|
+
"type": "integer",
|
|
551
|
+
"minimum": 1,
|
|
552
|
+
"maximum": 5
|
|
553
|
+
},
|
|
554
|
+
"headers": {
|
|
555
|
+
"$ref": "#/$defs/headers"
|
|
556
|
+
},
|
|
557
|
+
"searchAttributes": {
|
|
558
|
+
"type": "object",
|
|
559
|
+
"description": "Phase C: the search attributes the start set (11 §2.8)."
|
|
560
|
+
},
|
|
561
|
+
"fairnessKey": {
|
|
562
|
+
"type": "string",
|
|
563
|
+
"minLength": 1,
|
|
564
|
+
"maxLength": 255,
|
|
565
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
566
|
+
},
|
|
567
|
+
"fairnessWeight": {
|
|
568
|
+
"type": "number",
|
|
569
|
+
"minimum": 0.1,
|
|
570
|
+
"maximum": 10,
|
|
571
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
348
572
|
}
|
|
349
573
|
}
|
|
350
574
|
},
|
|
@@ -395,6 +619,9 @@
|
|
|
395
619
|
"type": "integer",
|
|
396
620
|
"minimum": 1,
|
|
397
621
|
"description": "The history length the attempt was leased with (run.taskStartedSeq), when it is not this event's own seq. Required on the WORKFLOW_TASK_STARTED of a transient attempt: input events with a higher seq that precede this event arrived during the attempt and belong to the next activation."
|
|
622
|
+
},
|
|
623
|
+
"version": {
|
|
624
|
+
"description": "R2: the workflow version whose bundle served the task (it differs from WORKFLOW_STARTED.version after an AUTO_UPGRADE or a versioning override)."
|
|
398
625
|
}
|
|
399
626
|
}
|
|
400
627
|
},
|
|
@@ -479,85 +706,193 @@
|
|
|
479
706
|
}
|
|
480
707
|
},
|
|
481
708
|
"payload_ACTIVITY_SCHEDULED": {
|
|
482
|
-
"
|
|
483
|
-
"
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
709
|
+
"description": "The SCHEDULE_ACTIVITY command as the service accepted it: kind node, or kind user (Phase C) with activityName, taskQueue, fairness, connections and headers.",
|
|
710
|
+
"oneOf": [
|
|
711
|
+
{
|
|
712
|
+
"type": "object",
|
|
713
|
+
"required": [
|
|
714
|
+
"activityId",
|
|
715
|
+
"kind",
|
|
716
|
+
"nodeType",
|
|
717
|
+
"operation",
|
|
718
|
+
"args",
|
|
719
|
+
"retry"
|
|
720
|
+
],
|
|
721
|
+
"properties": {
|
|
722
|
+
"activityId": {
|
|
723
|
+
"type": "string",
|
|
724
|
+
"minLength": 1,
|
|
725
|
+
"maxLength": 256
|
|
726
|
+
},
|
|
727
|
+
"args": {},
|
|
728
|
+
"retry": {
|
|
729
|
+
"$ref": "#/$defs/retryPolicy"
|
|
730
|
+
},
|
|
731
|
+
"startToCloseTimeout": {
|
|
732
|
+
"type": "integer",
|
|
733
|
+
"minimum": 0
|
|
734
|
+
},
|
|
735
|
+
"scheduleToCloseTimeout": {
|
|
736
|
+
"type": "integer",
|
|
737
|
+
"minimum": 0
|
|
738
|
+
},
|
|
739
|
+
"scheduleToStartTimeout": {
|
|
740
|
+
"type": "integer",
|
|
741
|
+
"minimum": 0
|
|
742
|
+
},
|
|
743
|
+
"heartbeatTimeout": {
|
|
744
|
+
"type": "integer",
|
|
745
|
+
"minimum": 0
|
|
746
|
+
},
|
|
747
|
+
"cancellationType": {
|
|
748
|
+
"enum": [
|
|
749
|
+
"WAIT_CANCELLATION_COMPLETED",
|
|
750
|
+
"TRY_CANCEL",
|
|
751
|
+
"ABANDON"
|
|
752
|
+
]
|
|
753
|
+
},
|
|
754
|
+
"priority": {
|
|
755
|
+
"type": "integer",
|
|
756
|
+
"minimum": 1,
|
|
757
|
+
"maximum": 5
|
|
758
|
+
},
|
|
759
|
+
"summary": {
|
|
760
|
+
"type": "string",
|
|
761
|
+
"maxLength": 200
|
|
762
|
+
},
|
|
763
|
+
"fairnessKey": {
|
|
764
|
+
"type": "string",
|
|
765
|
+
"minLength": 1,
|
|
766
|
+
"maxLength": 255,
|
|
767
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
768
|
+
},
|
|
769
|
+
"fairnessWeight": {
|
|
770
|
+
"type": "number",
|
|
771
|
+
"minimum": 0.1,
|
|
772
|
+
"maximum": 10,
|
|
773
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
774
|
+
},
|
|
775
|
+
"kind": {
|
|
776
|
+
"const": "node"
|
|
777
|
+
},
|
|
778
|
+
"nodeType": {
|
|
779
|
+
"type": "string",
|
|
780
|
+
"minLength": 1,
|
|
781
|
+
"maxLength": 256
|
|
782
|
+
},
|
|
783
|
+
"nodeVersion": {
|
|
784
|
+
"type": "string"
|
|
785
|
+
},
|
|
786
|
+
"operation": {
|
|
787
|
+
"type": "string",
|
|
788
|
+
"minLength": 1,
|
|
789
|
+
"maxLength": 256
|
|
790
|
+
},
|
|
791
|
+
"connection": {
|
|
792
|
+
"type": "string",
|
|
793
|
+
"minLength": 1,
|
|
794
|
+
"maxLength": 256
|
|
795
|
+
},
|
|
796
|
+
"runOn": {
|
|
797
|
+
"type": "string"
|
|
798
|
+
},
|
|
799
|
+
"headers": {
|
|
800
|
+
"$ref": "#/$defs/headers"
|
|
801
|
+
}
|
|
802
|
+
}
|
|
556
803
|
},
|
|
557
|
-
|
|
558
|
-
"type": "
|
|
804
|
+
{
|
|
805
|
+
"type": "object",
|
|
806
|
+
"required": [
|
|
807
|
+
"activityId",
|
|
808
|
+
"kind",
|
|
809
|
+
"activityName",
|
|
810
|
+
"taskQueue",
|
|
811
|
+
"args",
|
|
812
|
+
"retry"
|
|
813
|
+
],
|
|
814
|
+
"properties": {
|
|
815
|
+
"activityId": {
|
|
816
|
+
"type": "string",
|
|
817
|
+
"minLength": 1,
|
|
818
|
+
"maxLength": 256
|
|
819
|
+
},
|
|
820
|
+
"args": {},
|
|
821
|
+
"retry": {
|
|
822
|
+
"$ref": "#/$defs/retryPolicy"
|
|
823
|
+
},
|
|
824
|
+
"startToCloseTimeout": {
|
|
825
|
+
"type": "integer",
|
|
826
|
+
"minimum": 0
|
|
827
|
+
},
|
|
828
|
+
"scheduleToCloseTimeout": {
|
|
829
|
+
"type": "integer",
|
|
830
|
+
"minimum": 0
|
|
831
|
+
},
|
|
832
|
+
"scheduleToStartTimeout": {
|
|
833
|
+
"type": "integer",
|
|
834
|
+
"minimum": 0
|
|
835
|
+
},
|
|
836
|
+
"heartbeatTimeout": {
|
|
837
|
+
"type": "integer",
|
|
838
|
+
"minimum": 0
|
|
839
|
+
},
|
|
840
|
+
"cancellationType": {
|
|
841
|
+
"enum": [
|
|
842
|
+
"WAIT_CANCELLATION_COMPLETED",
|
|
843
|
+
"TRY_CANCEL",
|
|
844
|
+
"ABANDON"
|
|
845
|
+
]
|
|
846
|
+
},
|
|
847
|
+
"priority": {
|
|
848
|
+
"type": "integer",
|
|
849
|
+
"minimum": 1,
|
|
850
|
+
"maximum": 5
|
|
851
|
+
},
|
|
852
|
+
"summary": {
|
|
853
|
+
"type": "string",
|
|
854
|
+
"maxLength": 200
|
|
855
|
+
},
|
|
856
|
+
"fairnessKey": {
|
|
857
|
+
"type": "string",
|
|
858
|
+
"minLength": 1,
|
|
859
|
+
"maxLength": 255,
|
|
860
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
861
|
+
},
|
|
862
|
+
"fairnessWeight": {
|
|
863
|
+
"type": "number",
|
|
864
|
+
"minimum": 0.1,
|
|
865
|
+
"maximum": 10,
|
|
866
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
867
|
+
},
|
|
868
|
+
"kind": {
|
|
869
|
+
"const": "user"
|
|
870
|
+
},
|
|
871
|
+
"activityName": {
|
|
872
|
+
"type": "string",
|
|
873
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,127}$"
|
|
874
|
+
},
|
|
875
|
+
"taskQueue": {
|
|
876
|
+
"type": "string",
|
|
877
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
|
|
878
|
+
},
|
|
879
|
+
"connections": {
|
|
880
|
+
"type": "array",
|
|
881
|
+
"maxItems": 16,
|
|
882
|
+
"uniqueItems": true,
|
|
883
|
+
"items": {
|
|
884
|
+
"type": "string",
|
|
885
|
+
"minLength": 1,
|
|
886
|
+
"maxLength": 256
|
|
887
|
+
},
|
|
888
|
+
"description": "Connection names the worker may resolve for each started attempt (H2: declared by the definition and on the worker token allow-list)."
|
|
889
|
+
},
|
|
890
|
+
"headers": {
|
|
891
|
+
"$ref": "#/$defs/headers"
|
|
892
|
+
}
|
|
893
|
+
}
|
|
559
894
|
}
|
|
560
|
-
|
|
895
|
+
]
|
|
561
896
|
},
|
|
562
897
|
"payload_ACTIVITY_STARTED": {
|
|
563
898
|
"type": "object",
|
|
@@ -819,6 +1154,9 @@
|
|
|
819
1154
|
"actor": {},
|
|
820
1155
|
"idempotencyKey": {
|
|
821
1156
|
"type": "string"
|
|
1157
|
+
},
|
|
1158
|
+
"headers": {
|
|
1159
|
+
"$ref": "#/$defs/headers"
|
|
822
1160
|
}
|
|
823
1161
|
}
|
|
824
1162
|
},
|
|
@@ -839,7 +1177,10 @@
|
|
|
839
1177
|
"minLength": 1,
|
|
840
1178
|
"maxLength": 256
|
|
841
1179
|
},
|
|
842
|
-
"args": {}
|
|
1180
|
+
"args": {},
|
|
1181
|
+
"headers": {
|
|
1182
|
+
"$ref": "#/$defs/headers"
|
|
1183
|
+
}
|
|
843
1184
|
}
|
|
844
1185
|
},
|
|
845
1186
|
"payload_UPDATE_ACCEPTED": {
|
|
@@ -859,7 +1200,10 @@
|
|
|
859
1200
|
"minLength": 1,
|
|
860
1201
|
"maxLength": 256
|
|
861
1202
|
},
|
|
862
|
-
"args": {}
|
|
1203
|
+
"args": {},
|
|
1204
|
+
"headers": {
|
|
1205
|
+
"$ref": "#/$defs/headers"
|
|
1206
|
+
}
|
|
863
1207
|
}
|
|
864
1208
|
},
|
|
865
1209
|
"payload_UPDATE_COMPLETED": {
|
|
@@ -917,6 +1261,9 @@
|
|
|
917
1261
|
"GRAPH",
|
|
918
1262
|
"DURABLE_FN"
|
|
919
1263
|
]
|
|
1264
|
+
},
|
|
1265
|
+
"headers": {
|
|
1266
|
+
"$ref": "#/$defs/headers"
|
|
920
1267
|
}
|
|
921
1268
|
}
|
|
922
1269
|
},
|
|
@@ -1171,6 +1518,19 @@
|
|
|
1171
1518
|
"attempts": {
|
|
1172
1519
|
"type": "integer",
|
|
1173
1520
|
"minimum": 1
|
|
1521
|
+
},
|
|
1522
|
+
"nodeType": {
|
|
1523
|
+
"type": "string",
|
|
1524
|
+
"minLength": 1,
|
|
1525
|
+
"maxLength": 256
|
|
1526
|
+
},
|
|
1527
|
+
"operation": {
|
|
1528
|
+
"type": "string",
|
|
1529
|
+
"minLength": 1,
|
|
1530
|
+
"maxLength": 256
|
|
1531
|
+
},
|
|
1532
|
+
"summary": {
|
|
1533
|
+
"type": "string"
|
|
1174
1534
|
}
|
|
1175
1535
|
}
|
|
1176
1536
|
},
|
|
@@ -1193,6 +1553,19 @@
|
|
|
1193
1553
|
"attempts": {
|
|
1194
1554
|
"type": "integer",
|
|
1195
1555
|
"minimum": 1
|
|
1556
|
+
},
|
|
1557
|
+
"nodeType": {
|
|
1558
|
+
"type": "string",
|
|
1559
|
+
"minLength": 1,
|
|
1560
|
+
"maxLength": 256
|
|
1561
|
+
},
|
|
1562
|
+
"operation": {
|
|
1563
|
+
"type": "string",
|
|
1564
|
+
"minLength": 1,
|
|
1565
|
+
"maxLength": 256
|
|
1566
|
+
},
|
|
1567
|
+
"summary": {
|
|
1568
|
+
"type": "string"
|
|
1196
1569
|
}
|
|
1197
1570
|
}
|
|
1198
1571
|
},
|
|
@@ -1261,6 +1634,13 @@
|
|
|
1261
1634
|
},
|
|
1262
1635
|
"reason": {
|
|
1263
1636
|
"type": "string"
|
|
1637
|
+
},
|
|
1638
|
+
"actor": {},
|
|
1639
|
+
"reapplySignals": {
|
|
1640
|
+
"type": "boolean"
|
|
1641
|
+
},
|
|
1642
|
+
"reapplyUpdates": {
|
|
1643
|
+
"type": "boolean"
|
|
1264
1644
|
}
|
|
1265
1645
|
}
|
|
1266
1646
|
},
|
|
@@ -1270,7 +1650,44 @@
|
|
|
1270
1650
|
"override"
|
|
1271
1651
|
],
|
|
1272
1652
|
"properties": {
|
|
1273
|
-
"override": {
|
|
1653
|
+
"override": {
|
|
1654
|
+
"description": "The per-run override (11 §2.27): { behavior: PINNED, version } pins the run, { behavior: AUTO_UPGRADE } upgrades it, null removes the override.",
|
|
1655
|
+
"oneOf": [
|
|
1656
|
+
{
|
|
1657
|
+
"type": "null"
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"type": "object",
|
|
1661
|
+
"required": [
|
|
1662
|
+
"behavior",
|
|
1663
|
+
"version"
|
|
1664
|
+
],
|
|
1665
|
+
"properties": {
|
|
1666
|
+
"behavior": {
|
|
1667
|
+
"const": "PINNED"
|
|
1668
|
+
},
|
|
1669
|
+
"version": {}
|
|
1670
|
+
},
|
|
1671
|
+
"additionalProperties": false
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
"type": "object",
|
|
1675
|
+
"required": [
|
|
1676
|
+
"behavior"
|
|
1677
|
+
],
|
|
1678
|
+
"properties": {
|
|
1679
|
+
"behavior": {
|
|
1680
|
+
"const": "AUTO_UPGRADE"
|
|
1681
|
+
}
|
|
1682
|
+
},
|
|
1683
|
+
"additionalProperties": false
|
|
1684
|
+
}
|
|
1685
|
+
]
|
|
1686
|
+
},
|
|
1687
|
+
"actor": {},
|
|
1688
|
+
"reason": {
|
|
1689
|
+
"type": "string"
|
|
1690
|
+
}
|
|
1274
1691
|
}
|
|
1275
1692
|
},
|
|
1276
1693
|
"payload_WORKFLOW_COMPLETED": {
|
|
@@ -1321,6 +1738,9 @@
|
|
|
1321
1738
|
"WORKFLOW_RUN",
|
|
1322
1739
|
"WORKFLOW_EXECUTION"
|
|
1323
1740
|
]
|
|
1741
|
+
},
|
|
1742
|
+
"failure": {
|
|
1743
|
+
"$ref": "#/$defs/failure"
|
|
1324
1744
|
}
|
|
1325
1745
|
}
|
|
1326
1746
|
},
|
|
@@ -1333,7 +1753,8 @@
|
|
|
1333
1753
|
"properties": {
|
|
1334
1754
|
"input": {},
|
|
1335
1755
|
"options": {
|
|
1336
|
-
"type": "object"
|
|
1756
|
+
"type": "object",
|
|
1757
|
+
"description": "The CONTINUE_AS_NEW options as the service recorded them. New commands are checked against canOptions; histories recorded before R2 may hold any object the R1 contract accepted."
|
|
1337
1758
|
},
|
|
1338
1759
|
"newRunId": {
|
|
1339
1760
|
"type": "string"
|
|
@@ -1341,90 +1762,203 @@
|
|
|
1341
1762
|
}
|
|
1342
1763
|
},
|
|
1343
1764
|
"command_SCHEDULE_ACTIVITY": {
|
|
1344
|
-
"
|
|
1345
|
-
"
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
"
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1765
|
+
"description": "A oneOf on kind (C-CMD-C): node runs a canvas node operation; user (Phase C) runs a user activity on a self-hosted task queue.",
|
|
1766
|
+
"oneOf": [
|
|
1767
|
+
{
|
|
1768
|
+
"type": "object",
|
|
1769
|
+
"required": [
|
|
1770
|
+
"type",
|
|
1771
|
+
"activityId",
|
|
1772
|
+
"kind",
|
|
1773
|
+
"nodeType",
|
|
1774
|
+
"operation",
|
|
1775
|
+
"args",
|
|
1776
|
+
"retry"
|
|
1777
|
+
],
|
|
1778
|
+
"properties": {
|
|
1779
|
+
"type": {
|
|
1780
|
+
"const": "SCHEDULE_ACTIVITY"
|
|
1781
|
+
},
|
|
1782
|
+
"headers": {
|
|
1783
|
+
"$ref": "#/$defs/headers"
|
|
1784
|
+
},
|
|
1785
|
+
"activityId": {
|
|
1786
|
+
"type": "string",
|
|
1787
|
+
"minLength": 1,
|
|
1788
|
+
"maxLength": 256
|
|
1789
|
+
},
|
|
1790
|
+
"args": {},
|
|
1791
|
+
"retry": {
|
|
1792
|
+
"$ref": "#/$defs/retryPolicy"
|
|
1793
|
+
},
|
|
1794
|
+
"startToCloseTimeout": {
|
|
1795
|
+
"type": "integer",
|
|
1796
|
+
"minimum": 0
|
|
1797
|
+
},
|
|
1798
|
+
"scheduleToCloseTimeout": {
|
|
1799
|
+
"type": "integer",
|
|
1800
|
+
"minimum": 0
|
|
1801
|
+
},
|
|
1802
|
+
"scheduleToStartTimeout": {
|
|
1803
|
+
"type": "integer",
|
|
1804
|
+
"minimum": 0
|
|
1805
|
+
},
|
|
1806
|
+
"heartbeatTimeout": {
|
|
1807
|
+
"type": "integer",
|
|
1808
|
+
"minimum": 0
|
|
1809
|
+
},
|
|
1810
|
+
"cancellationType": {
|
|
1811
|
+
"enum": [
|
|
1812
|
+
"WAIT_CANCELLATION_COMPLETED",
|
|
1813
|
+
"TRY_CANCEL",
|
|
1814
|
+
"ABANDON"
|
|
1815
|
+
]
|
|
1816
|
+
},
|
|
1817
|
+
"priority": {
|
|
1818
|
+
"type": "integer",
|
|
1819
|
+
"minimum": 1,
|
|
1820
|
+
"maximum": 5
|
|
1821
|
+
},
|
|
1822
|
+
"summary": {
|
|
1823
|
+
"type": "string",
|
|
1824
|
+
"maxLength": 200
|
|
1825
|
+
},
|
|
1826
|
+
"fairnessKey": {
|
|
1827
|
+
"type": "string",
|
|
1828
|
+
"minLength": 1,
|
|
1829
|
+
"maxLength": 255,
|
|
1830
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
1831
|
+
},
|
|
1832
|
+
"fairnessWeight": {
|
|
1833
|
+
"type": "number",
|
|
1834
|
+
"minimum": 0.1,
|
|
1835
|
+
"maximum": 10,
|
|
1836
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
1837
|
+
},
|
|
1838
|
+
"kind": {
|
|
1839
|
+
"const": "node"
|
|
1840
|
+
},
|
|
1841
|
+
"nodeType": {
|
|
1842
|
+
"type": "string",
|
|
1843
|
+
"minLength": 1,
|
|
1844
|
+
"maxLength": 256
|
|
1845
|
+
},
|
|
1846
|
+
"nodeVersion": {
|
|
1847
|
+
"type": "string"
|
|
1848
|
+
},
|
|
1849
|
+
"operation": {
|
|
1850
|
+
"type": "string",
|
|
1851
|
+
"minLength": 1,
|
|
1852
|
+
"maxLength": 256
|
|
1853
|
+
},
|
|
1854
|
+
"connection": {
|
|
1855
|
+
"type": "string",
|
|
1856
|
+
"minLength": 1,
|
|
1857
|
+
"maxLength": 256
|
|
1858
|
+
},
|
|
1859
|
+
"runOn": {
|
|
1860
|
+
"type": "string"
|
|
1861
|
+
}
|
|
1862
|
+
},
|
|
1863
|
+
"additionalProperties": false
|
|
1422
1864
|
},
|
|
1423
|
-
|
|
1424
|
-
"type": "
|
|
1865
|
+
{
|
|
1866
|
+
"type": "object",
|
|
1867
|
+
"required": [
|
|
1868
|
+
"type",
|
|
1869
|
+
"activityId",
|
|
1870
|
+
"kind",
|
|
1871
|
+
"activityName",
|
|
1872
|
+
"taskQueue",
|
|
1873
|
+
"args",
|
|
1874
|
+
"retry"
|
|
1875
|
+
],
|
|
1876
|
+
"properties": {
|
|
1877
|
+
"type": {
|
|
1878
|
+
"const": "SCHEDULE_ACTIVITY"
|
|
1879
|
+
},
|
|
1880
|
+
"headers": {
|
|
1881
|
+
"$ref": "#/$defs/headers"
|
|
1882
|
+
},
|
|
1883
|
+
"activityId": {
|
|
1884
|
+
"type": "string",
|
|
1885
|
+
"minLength": 1,
|
|
1886
|
+
"maxLength": 256
|
|
1887
|
+
},
|
|
1888
|
+
"args": {},
|
|
1889
|
+
"retry": {
|
|
1890
|
+
"$ref": "#/$defs/retryPolicy"
|
|
1891
|
+
},
|
|
1892
|
+
"startToCloseTimeout": {
|
|
1893
|
+
"type": "integer",
|
|
1894
|
+
"minimum": 0
|
|
1895
|
+
},
|
|
1896
|
+
"scheduleToCloseTimeout": {
|
|
1897
|
+
"type": "integer",
|
|
1898
|
+
"minimum": 0
|
|
1899
|
+
},
|
|
1900
|
+
"scheduleToStartTimeout": {
|
|
1901
|
+
"type": "integer",
|
|
1902
|
+
"minimum": 0
|
|
1903
|
+
},
|
|
1904
|
+
"heartbeatTimeout": {
|
|
1905
|
+
"type": "integer",
|
|
1906
|
+
"minimum": 0
|
|
1907
|
+
},
|
|
1908
|
+
"cancellationType": {
|
|
1909
|
+
"enum": [
|
|
1910
|
+
"WAIT_CANCELLATION_COMPLETED",
|
|
1911
|
+
"TRY_CANCEL",
|
|
1912
|
+
"ABANDON"
|
|
1913
|
+
]
|
|
1914
|
+
},
|
|
1915
|
+
"priority": {
|
|
1916
|
+
"type": "integer",
|
|
1917
|
+
"minimum": 1,
|
|
1918
|
+
"maximum": 5
|
|
1919
|
+
},
|
|
1920
|
+
"summary": {
|
|
1921
|
+
"type": "string",
|
|
1922
|
+
"maxLength": 200
|
|
1923
|
+
},
|
|
1924
|
+
"fairnessKey": {
|
|
1925
|
+
"type": "string",
|
|
1926
|
+
"minLength": 1,
|
|
1927
|
+
"maxLength": 255,
|
|
1928
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
1929
|
+
},
|
|
1930
|
+
"fairnessWeight": {
|
|
1931
|
+
"type": "number",
|
|
1932
|
+
"minimum": 0.1,
|
|
1933
|
+
"maximum": 10,
|
|
1934
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
1935
|
+
},
|
|
1936
|
+
"kind": {
|
|
1937
|
+
"const": "user"
|
|
1938
|
+
},
|
|
1939
|
+
"activityName": {
|
|
1940
|
+
"type": "string",
|
|
1941
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,127}$"
|
|
1942
|
+
},
|
|
1943
|
+
"taskQueue": {
|
|
1944
|
+
"type": "string",
|
|
1945
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
|
|
1946
|
+
},
|
|
1947
|
+
"connections": {
|
|
1948
|
+
"type": "array",
|
|
1949
|
+
"maxItems": 16,
|
|
1950
|
+
"uniqueItems": true,
|
|
1951
|
+
"items": {
|
|
1952
|
+
"type": "string",
|
|
1953
|
+
"minLength": 1,
|
|
1954
|
+
"maxLength": 256
|
|
1955
|
+
},
|
|
1956
|
+
"description": "Connection names the worker may resolve for each started attempt (H2: declared by the definition and on the worker token allow-list)."
|
|
1957
|
+
}
|
|
1958
|
+
},
|
|
1959
|
+
"additionalProperties": false
|
|
1425
1960
|
}
|
|
1426
|
-
|
|
1427
|
-
"additionalProperties": false
|
|
1961
|
+
]
|
|
1428
1962
|
},
|
|
1429
1963
|
"command_REQUEST_CANCEL_ACTIVITY": {
|
|
1430
1964
|
"type": "object",
|
|
@@ -1726,6 +2260,20 @@
|
|
|
1726
2260
|
"attempts": {
|
|
1727
2261
|
"type": "integer",
|
|
1728
2262
|
"minimum": 1
|
|
2263
|
+
},
|
|
2264
|
+
"nodeType": {
|
|
2265
|
+
"type": "string",
|
|
2266
|
+
"minLength": 1,
|
|
2267
|
+
"maxLength": 256
|
|
2268
|
+
},
|
|
2269
|
+
"operation": {
|
|
2270
|
+
"type": "string",
|
|
2271
|
+
"minLength": 1,
|
|
2272
|
+
"maxLength": 256
|
|
2273
|
+
},
|
|
2274
|
+
"summary": {
|
|
2275
|
+
"type": "string",
|
|
2276
|
+
"maxLength": 200
|
|
1729
2277
|
}
|
|
1730
2278
|
},
|
|
1731
2279
|
"additionalProperties": false,
|
|
@@ -1758,7 +2306,7 @@
|
|
|
1758
2306
|
},
|
|
1759
2307
|
"input": {},
|
|
1760
2308
|
"options": {
|
|
1761
|
-
"
|
|
2309
|
+
"$ref": "#/$defs/canOptions"
|
|
1762
2310
|
}
|
|
1763
2311
|
},
|
|
1764
2312
|
"additionalProperties": false
|
|
@@ -3263,10 +3811,17 @@
|
|
|
3263
3811
|
"businessId": {
|
|
3264
3812
|
"type": "string"
|
|
3265
3813
|
},
|
|
3814
|
+
"workflowId": {
|
|
3815
|
+
"type": "string"
|
|
3816
|
+
},
|
|
3266
3817
|
"attempt": {
|
|
3267
3818
|
"type": "integer",
|
|
3268
3819
|
"minimum": 1
|
|
3269
3820
|
},
|
|
3821
|
+
"runAttempt": {
|
|
3822
|
+
"type": "integer",
|
|
3823
|
+
"minimum": 1
|
|
3824
|
+
},
|
|
3270
3825
|
"taskQueue": {
|
|
3271
3826
|
"type": "string"
|
|
3272
3827
|
},
|
|
@@ -3347,9 +3902,154 @@
|
|
|
3347
3902
|
},
|
|
3348
3903
|
"context": {
|
|
3349
3904
|
"type": "object"
|
|
3905
|
+
},
|
|
3906
|
+
"memo": {
|
|
3907
|
+
"type": "object"
|
|
3908
|
+
},
|
|
3909
|
+
"versioningBehavior": {
|
|
3910
|
+
"enum": [
|
|
3911
|
+
"PINNED",
|
|
3912
|
+
"AUTO_UPGRADE"
|
|
3913
|
+
]
|
|
3914
|
+
},
|
|
3915
|
+
"retry": {
|
|
3916
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
3917
|
+
},
|
|
3918
|
+
"searchAttributes": {
|
|
3919
|
+
"type": "object"
|
|
3920
|
+
},
|
|
3921
|
+
"fairnessKey": {
|
|
3922
|
+
"type": "string",
|
|
3923
|
+
"minLength": 1,
|
|
3924
|
+
"maxLength": 255,
|
|
3925
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
3926
|
+
},
|
|
3927
|
+
"fairnessWeight": {
|
|
3928
|
+
"type": "number",
|
|
3929
|
+
"minimum": 0.1,
|
|
3930
|
+
"maximum": 10,
|
|
3931
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
3350
3932
|
}
|
|
3351
3933
|
}
|
|
3352
3934
|
},
|
|
3935
|
+
"updateRequest": {
|
|
3936
|
+
"type": "object",
|
|
3937
|
+
"required": [
|
|
3938
|
+
"updateId",
|
|
3939
|
+
"name"
|
|
3940
|
+
],
|
|
3941
|
+
"description": "Phase C (C-ABI-H): a pending update the lease delivers. admitted marks one history already holds as UPDATE_ADMITTED; the runtime delivers that one from the event.",
|
|
3942
|
+
"properties": {
|
|
3943
|
+
"updateId": {
|
|
3944
|
+
"type": "string",
|
|
3945
|
+
"minLength": 1,
|
|
3946
|
+
"maxLength": 256
|
|
3947
|
+
},
|
|
3948
|
+
"name": {
|
|
3949
|
+
"type": "string",
|
|
3950
|
+
"minLength": 1,
|
|
3951
|
+
"maxLength": 256
|
|
3952
|
+
},
|
|
3953
|
+
"args": {},
|
|
3954
|
+
"admitted": {
|
|
3955
|
+
"type": "boolean"
|
|
3956
|
+
},
|
|
3957
|
+
"headers": {
|
|
3958
|
+
"$ref": "#/$defs/headers"
|
|
3959
|
+
}
|
|
3960
|
+
},
|
|
3961
|
+
"additionalProperties": false
|
|
3962
|
+
},
|
|
3963
|
+
"sinkCall": {
|
|
3964
|
+
"type": "object",
|
|
3965
|
+
"required": [
|
|
3966
|
+
"sink",
|
|
3967
|
+
"fn",
|
|
3968
|
+
"args"
|
|
3969
|
+
],
|
|
3970
|
+
"description": "Phase C: a call of ctx.sinks.<sink>.<fn>(...args), never made on replay.",
|
|
3971
|
+
"properties": {
|
|
3972
|
+
"sink": {
|
|
3973
|
+
"type": "string",
|
|
3974
|
+
"minLength": 1,
|
|
3975
|
+
"maxLength": 256
|
|
3976
|
+
},
|
|
3977
|
+
"fn": {
|
|
3978
|
+
"type": "string",
|
|
3979
|
+
"minLength": 1,
|
|
3980
|
+
"maxLength": 256
|
|
3981
|
+
},
|
|
3982
|
+
"args": {
|
|
3983
|
+
"type": "array"
|
|
3984
|
+
}
|
|
3985
|
+
},
|
|
3986
|
+
"additionalProperties": false
|
|
3987
|
+
},
|
|
3988
|
+
"localActivityRequest": {
|
|
3989
|
+
"type": "object",
|
|
3990
|
+
"required": [
|
|
3991
|
+
"localActivityId",
|
|
3992
|
+
"kind",
|
|
3993
|
+
"nodeType",
|
|
3994
|
+
"operation",
|
|
3995
|
+
"args",
|
|
3996
|
+
"retry",
|
|
3997
|
+
"startToCloseTimeout",
|
|
3998
|
+
"attempt",
|
|
3999
|
+
"backoffMs"
|
|
4000
|
+
],
|
|
4001
|
+
"description": "R2: a local activity the task needs (11 §2.12). Run attempt `attempt` after waiting backoffMs, then run the same task again with the outcome in localActivityResults.",
|
|
4002
|
+
"properties": {
|
|
4003
|
+
"localActivityId": {
|
|
4004
|
+
"type": "string",
|
|
4005
|
+
"minLength": 1,
|
|
4006
|
+
"maxLength": 256
|
|
4007
|
+
},
|
|
4008
|
+
"kind": {
|
|
4009
|
+
"const": "node"
|
|
4010
|
+
},
|
|
4011
|
+
"nodeType": {
|
|
4012
|
+
"type": "string",
|
|
4013
|
+
"minLength": 1,
|
|
4014
|
+
"maxLength": 256
|
|
4015
|
+
},
|
|
4016
|
+
"nodeVersion": {
|
|
4017
|
+
"type": "string"
|
|
4018
|
+
},
|
|
4019
|
+
"operation": {
|
|
4020
|
+
"type": "string",
|
|
4021
|
+
"minLength": 1,
|
|
4022
|
+
"maxLength": 256
|
|
4023
|
+
},
|
|
4024
|
+
"args": {},
|
|
4025
|
+
"connection": {
|
|
4026
|
+
"type": "string",
|
|
4027
|
+
"minLength": 1,
|
|
4028
|
+
"maxLength": 256
|
|
4029
|
+
},
|
|
4030
|
+
"retry": {
|
|
4031
|
+
"$ref": "#/$defs/retryPolicy"
|
|
4032
|
+
},
|
|
4033
|
+
"startToCloseTimeout": {
|
|
4034
|
+
"type": "integer",
|
|
4035
|
+
"minimum": 1,
|
|
4036
|
+
"maximum": 30000
|
|
4037
|
+
},
|
|
4038
|
+
"attempt": {
|
|
4039
|
+
"type": "integer",
|
|
4040
|
+
"minimum": 1
|
|
4041
|
+
},
|
|
4042
|
+
"backoffMs": {
|
|
4043
|
+
"type": "integer",
|
|
4044
|
+
"minimum": 0
|
|
4045
|
+
},
|
|
4046
|
+
"summary": {
|
|
4047
|
+
"type": "string",
|
|
4048
|
+
"maxLength": 200
|
|
4049
|
+
}
|
|
4050
|
+
},
|
|
4051
|
+
"additionalProperties": false
|
|
4052
|
+
},
|
|
3353
4053
|
"request": {
|
|
3354
4054
|
"type": "object",
|
|
3355
4055
|
"required": [
|
|
@@ -3413,6 +4113,12 @@
|
|
|
3413
4113
|
}
|
|
3414
4114
|
}
|
|
3415
4115
|
},
|
|
4116
|
+
"updates": {
|
|
4117
|
+
"type": "array",
|
|
4118
|
+
"items": {
|
|
4119
|
+
"$ref": "#/$defs/updateRequest"
|
|
4120
|
+
}
|
|
4121
|
+
},
|
|
3416
4122
|
"queries": {
|
|
3417
4123
|
"type": "array",
|
|
3418
4124
|
"items": {
|
|
@@ -3428,15 +4134,23 @@
|
|
|
3428
4134
|
"maxLength": 256
|
|
3429
4135
|
},
|
|
3430
4136
|
"name": {
|
|
3431
|
-
"
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
]
|
|
4137
|
+
"type": "string",
|
|
4138
|
+
"minLength": 1,
|
|
4139
|
+
"maxLength": 256,
|
|
4140
|
+
"description": "A built-in query (__stack_trace, __enhanced_stack_trace, __metadata) or, from C-R1, the name of a custom query."
|
|
3436
4141
|
},
|
|
3437
4142
|
"args": {}
|
|
3438
4143
|
}
|
|
3439
4144
|
}
|
|
4145
|
+
},
|
|
4146
|
+
"features": {
|
|
4147
|
+
"type": "array",
|
|
4148
|
+
"items": {
|
|
4149
|
+
"type": "string",
|
|
4150
|
+
"minLength": 1
|
|
4151
|
+
},
|
|
4152
|
+
"uniqueItems": true,
|
|
4153
|
+
"description": "The bundle features (code.features names) the workspace enables for this task. From C-R1 the runtime reads `interceptors`: a task of a bundle that exports interceptors fails with UNSUPPORTED_COMMAND unless it is listed."
|
|
3440
4154
|
}
|
|
3441
4155
|
}
|
|
3442
4156
|
},
|
|
@@ -3468,7 +4182,35 @@
|
|
|
3468
4182
|
"localActivityRequests": {
|
|
3469
4183
|
"type": "array",
|
|
3470
4184
|
"items": {
|
|
3471
|
-
"
|
|
4185
|
+
"$ref": "#/$defs/localActivityRequest"
|
|
4186
|
+
}
|
|
4187
|
+
},
|
|
4188
|
+
"unfinishedHandlers": {
|
|
4189
|
+
"type": "array",
|
|
4190
|
+
"description": "R2: handlers still running when the terminal command was issued (11 §2.18); never set on replay.",
|
|
4191
|
+
"items": {
|
|
4192
|
+
"type": "object",
|
|
4193
|
+
"required": [
|
|
4194
|
+
"kind",
|
|
4195
|
+
"name",
|
|
4196
|
+
"count"
|
|
4197
|
+
],
|
|
4198
|
+
"properties": {
|
|
4199
|
+
"kind": {
|
|
4200
|
+
"enum": [
|
|
4201
|
+
"signal",
|
|
4202
|
+
"update"
|
|
4203
|
+
]
|
|
4204
|
+
},
|
|
4205
|
+
"name": {
|
|
4206
|
+
"type": "string"
|
|
4207
|
+
},
|
|
4208
|
+
"count": {
|
|
4209
|
+
"type": "integer",
|
|
4210
|
+
"minimum": 1
|
|
4211
|
+
}
|
|
4212
|
+
},
|
|
4213
|
+
"additionalProperties": false
|
|
3472
4214
|
}
|
|
3473
4215
|
},
|
|
3474
4216
|
"queryResults": {
|
|
@@ -3487,10 +4229,21 @@
|
|
|
3487
4229
|
"value": {},
|
|
3488
4230
|
"error": {
|
|
3489
4231
|
"type": "string"
|
|
4232
|
+
},
|
|
4233
|
+
"rejected": {
|
|
4234
|
+
"type": "boolean",
|
|
4235
|
+
"description": "Phase C: no handler took the query name (the service answers VALIDATION)."
|
|
3490
4236
|
}
|
|
3491
4237
|
}
|
|
3492
4238
|
}
|
|
3493
4239
|
},
|
|
4240
|
+
"sinkCalls": {
|
|
4241
|
+
"type": "array",
|
|
4242
|
+
"maxItems": 256,
|
|
4243
|
+
"items": {
|
|
4244
|
+
"$ref": "#/$defs/sinkCall"
|
|
4245
|
+
}
|
|
4246
|
+
},
|
|
3494
4247
|
"failure": {
|
|
3495
4248
|
"type": "object",
|
|
3496
4249
|
"required": [
|