@fluidgrids/workflows 2026.1028.2 → 2026.1029.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 +72 -10
- package/dist/{activation-DnhG7SmF.d.ts → activation-BnVQMv9y.d.ts} +1 -1
- package/dist/{activation-BBh1p82z.d.cts → activation-CESehfYi.d.cts} +1 -1
- package/dist/{chunk-XHXIDVEC.js → chunk-25BKWR2O.js} +1 -1
- package/dist/{chunk-UK3WM7YZ.cjs → chunk-2B37XAFQ.cjs} +44 -8
- package/dist/{chunk-DJYMDLV5.js → chunk-2DDULZFM.js} +93 -1
- package/dist/{chunk-623FVQSN.cjs → chunk-3FIDHONL.cjs} +104 -0
- package/dist/chunk-6QPOJZT6.cjs +1180 -0
- package/dist/chunk-7ILGCUI6.js +154 -0
- package/dist/chunk-A2OHX3UQ.js +1156 -0
- package/dist/{chunk-VOKMAAJP.js → chunk-A36CCOWS.js} +188 -19
- package/dist/{chunk-FMSW2HDF.cjs → chunk-ELL2RBML.cjs} +0 -14
- package/dist/{chunk-JD2VQIDZ.cjs → chunk-EWYADREB.cjs} +2 -2
- package/dist/{chunk-HWJZVOG7.js → chunk-FQSJI5NV.js} +1 -1
- package/dist/{chunk-ABFZWYHT.js → chunk-FWBRQWRX.js} +156 -48
- package/dist/{chunk-PZCVF76Q.cjs → chunk-I47EENR4.cjs} +209 -40
- package/dist/chunk-J3PYFGKA.cjs +166 -0
- package/dist/{chunk-C5OLWZ42.js → chunk-KXJDRQ6G.js} +1 -13
- package/dist/chunk-M272AHEX.js +25 -0
- package/dist/{chunk-VRHHBPT6.js → chunk-MJ5TGYVG.js} +333 -65
- package/dist/{chunk-SAOBPYYJ.cjs → chunk-NXFBVDOI.cjs} +3 -3
- package/dist/{chunk-XKJA7KX3.js → chunk-OIX4O6UR.js} +38 -2
- package/dist/{chunk-FEW3JBYA.cjs → chunk-OKX3FYIM.cjs} +3 -3
- package/dist/{chunk-M4BBAERY.cjs → chunk-OMY3CKUZ.cjs} +404 -136
- package/dist/chunk-PWIUEWC3.js +81 -0
- package/dist/chunk-Q4MWQNJK.cjs +28 -0
- package/dist/{chunk-P6TA5EZT.cjs → chunk-RUQIMTN5.cjs} +171 -57
- package/dist/{chunk-IISBRUWJ.js → chunk-WXXNCHUY.js} +1 -1
- package/dist/chunk-YHBVMOMK.cjs +87 -0
- package/dist/codegen/index.d.cts +2 -2
- package/dist/codegen/index.d.ts +2 -2
- package/dist/collect-BTHjQaSp.d.ts +86 -0
- package/dist/collect-CSyOg5XC.d.cts +86 -0
- package/dist/{file-BOoHZgoQ.d.cts → file-cgL9l9l8.d.cts} +765 -14
- package/dist/{file-yuPCFU5b.d.ts → file-olQudcx5.d.ts} +765 -14
- package/dist/history/index.cjs +198 -86
- package/dist/history/index.d.cts +49 -10
- package/dist/history/index.d.ts +49 -10
- package/dist/history/index.js +49 -4
- package/dist/index.cjs +64 -51
- package/dist/index.d.cts +9 -53
- package/dist/index.d.ts +9 -53
- package/dist/index.js +5 -4
- package/dist/ir/index.cjs +24 -3
- package/dist/ir/index.d.cts +43 -4
- package/dist/ir/index.d.ts +43 -4
- package/dist/ir/index.js +24 -3
- package/dist/{lower-BzmUz0sq.d.cts → lower-3S6PsqjJ.d.cts} +40 -6
- package/dist/{lower-_-iT4HYs.d.ts → lower-DmZpQ8hJ.d.ts} +40 -6
- package/dist/{manifest-C8N6HDYl.d.ts → manifest-BJjrQt77.d.ts} +1 -1
- package/dist/{manifest-0OLw0i7k.d.cts → manifest-gRI2Q5Fj.d.cts} +1 -1
- package/dist/node-evaluator-SOADN23V.js +14 -0
- package/dist/node-evaluator-YGDEXK4U.cjs +24 -0
- package/dist/quickjs/index.cjs +25 -24
- package/dist/quickjs/index.d.cts +6 -6
- package/dist/quickjs/index.d.ts +6 -6
- package/dist/quickjs/index.js +8 -7
- package/dist/roundtrip/index.cjs +245 -43
- package/dist/roundtrip/index.d.cts +86 -9
- package/dist/roundtrip/index.d.ts +86 -9
- package/dist/roundtrip/index.js +172 -8
- package/dist/runtime/index.cjs +21 -20
- package/dist/runtime/index.d.cts +49 -7
- package/dist/runtime/index.d.ts +49 -7
- package/dist/runtime/index.js +8 -7
- package/dist/testing/index.cjs +514 -74
- package/dist/testing/index.d.cts +127 -10
- package/dist/testing/index.d.ts +127 -10
- package/dist/testing/index.js +480 -42
- package/dist/{types-BGoPzgcl.d.ts → types-Bb2wRnJ5.d.cts} +20 -1
- package/dist/{types-BGoPzgcl.d.cts → types-Bb2wRnJ5.d.ts} +20 -1
- package/dist/{types-DV-HX_Gt.d.ts → types-CQKOhPTa.d.cts} +122 -14
- package/dist/{types-CpBBjaGX.d.cts → types-CnIOinoz.d.ts} +122 -14
- package/dist/{workflow-Bpr3vnA_.d.ts → workflow-8uRU9rhL.d.ts} +2 -2
- package/dist/{workflow-FXUkpIBc.d.cts → workflow-CZOXUlQ5.d.cts} +2 -2
- package/dist/{workflow-C2a05WUJ.d.ts → workflow-DWTPHFbt.d.ts} +124 -12
- package/dist/{workflow-J-yYixny.d.cts → workflow-O6e64ZcG.d.cts} +124 -12
- 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/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/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/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/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/start-delay-signal-ends-delay.history.json +155 -0
- package/fixtures/histories/typeerror-task-retry-100.history.json +137 -0
- package/package.json +1 -1
- package/schema/history-file.schema.json +283 -2
- package/schema/ir-v2.schema.json +45 -0
- package/schema/run-event.schema.json +264 -2
- package/schema/workflow-command.schema.json +178 -1
- package/schema/workflow-task.schema.json +392 -4
- package/dist/assemble-BLqQ8lSu.d.cts +0 -39
- package/dist/assemble-DWgaXHd-.d.ts +0 -39
- package/dist/chunk-2J6TF7YI.cjs +0 -86
- package/dist/chunk-BO6OVILK.js +0 -79
- package/dist/chunk-DHTLALBL.cjs +0 -80
- package/dist/chunk-I5LR3D2K.js +0 -869
- package/dist/chunk-N23SKIG4.js +0 -73
- package/dist/chunk-QQ6ULXHI.cjs +0 -885
- package/dist/node-evaluator-4MSDKWOG.cjs +0 -22
- package/dist/node-evaluator-SX4LEYQC.js +0 -12
|
@@ -205,6 +205,7 @@
|
|
|
205
205
|
"workflowKey",
|
|
206
206
|
"workflowId"
|
|
207
207
|
],
|
|
208
|
+
"description": "The open run of a workflow id, following its continue-as-new chain; firstRunId pins the chain (R2).",
|
|
208
209
|
"properties": {
|
|
209
210
|
"workflowKey": {
|
|
210
211
|
"type": "string",
|
|
@@ -215,12 +216,82 @@
|
|
|
215
216
|
"type": "string",
|
|
216
217
|
"minLength": 1,
|
|
217
218
|
"maxLength": 256
|
|
219
|
+
},
|
|
220
|
+
"firstRunId": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"minLength": 1,
|
|
223
|
+
"maxLength": 256
|
|
218
224
|
}
|
|
219
225
|
},
|
|
220
226
|
"additionalProperties": false
|
|
221
227
|
}
|
|
222
228
|
]
|
|
223
229
|
},
|
|
230
|
+
"runRetryPolicy": {
|
|
231
|
+
"type": "object",
|
|
232
|
+
"required": [
|
|
233
|
+
"initialDelayMs"
|
|
234
|
+
],
|
|
235
|
+
"description": "Run-level retry (11 §2.17), in milliseconds. maxAttempts counts every attempt; absent means unlimited, bounded by the execution timeout.",
|
|
236
|
+
"properties": {
|
|
237
|
+
"maxAttempts": {
|
|
238
|
+
"type": "integer",
|
|
239
|
+
"minimum": 1
|
|
240
|
+
},
|
|
241
|
+
"initialDelayMs": {
|
|
242
|
+
"type": "integer",
|
|
243
|
+
"minimum": 0
|
|
244
|
+
},
|
|
245
|
+
"backoffMultiplier": {
|
|
246
|
+
"type": "number",
|
|
247
|
+
"minimum": 1
|
|
248
|
+
},
|
|
249
|
+
"maxDelayMs": {
|
|
250
|
+
"type": "integer",
|
|
251
|
+
"minimum": 0
|
|
252
|
+
},
|
|
253
|
+
"retryOnErrorTypes": {
|
|
254
|
+
"type": "array",
|
|
255
|
+
"items": {
|
|
256
|
+
"enum": [
|
|
257
|
+
"TIMEOUT",
|
|
258
|
+
"TRANSIENT",
|
|
259
|
+
"DEPENDENCY",
|
|
260
|
+
"AUTHORIZATION",
|
|
261
|
+
"VALIDATION",
|
|
262
|
+
"PERMANENT",
|
|
263
|
+
"UNKNOWN"
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"nonRetryableErrorTypes": {
|
|
268
|
+
"type": "array",
|
|
269
|
+
"items": {
|
|
270
|
+
"type": "string"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"additionalProperties": false
|
|
275
|
+
},
|
|
276
|
+
"timeouts": {
|
|
277
|
+
"type": "object",
|
|
278
|
+
"description": "The three workflow timeouts (11 §2.20), in milliseconds.",
|
|
279
|
+
"properties": {
|
|
280
|
+
"executionTimeout": {
|
|
281
|
+
"type": "integer",
|
|
282
|
+
"minimum": 0
|
|
283
|
+
},
|
|
284
|
+
"runTimeout": {
|
|
285
|
+
"type": "integer",
|
|
286
|
+
"minimum": 0
|
|
287
|
+
},
|
|
288
|
+
"workflowTaskTimeout": {
|
|
289
|
+
"type": "integer",
|
|
290
|
+
"minimum": 0
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"additionalProperties": false
|
|
294
|
+
},
|
|
224
295
|
"childOptions": {
|
|
225
296
|
"type": "object",
|
|
226
297
|
"required": [
|
|
@@ -282,9 +353,101 @@
|
|
|
282
353
|
"startDelay": {
|
|
283
354
|
"type": "integer",
|
|
284
355
|
"minimum": 0
|
|
356
|
+
},
|
|
357
|
+
"retry": {
|
|
358
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
359
|
+
},
|
|
360
|
+
"versioningBehavior": {
|
|
361
|
+
"enum": [
|
|
362
|
+
"PINNED",
|
|
363
|
+
"AUTO_UPGRADE"
|
|
364
|
+
]
|
|
365
|
+
},
|
|
366
|
+
"idReusePolicy": {
|
|
367
|
+
"enum": [
|
|
368
|
+
"ALLOW_DUPLICATE",
|
|
369
|
+
"ALLOW_DUPLICATE_FAILED_ONLY",
|
|
370
|
+
"REJECT_DUPLICATE"
|
|
371
|
+
]
|
|
372
|
+
},
|
|
373
|
+
"idConflictPolicy": {
|
|
374
|
+
"enum": [
|
|
375
|
+
"FAIL",
|
|
376
|
+
"USE_EXISTING",
|
|
377
|
+
"TERMINATE_EXISTING"
|
|
378
|
+
]
|
|
285
379
|
}
|
|
286
380
|
}
|
|
287
381
|
},
|
|
382
|
+
"legacyCanRetryPolicy": {
|
|
383
|
+
"type": "object",
|
|
384
|
+
"required": [
|
|
385
|
+
"retryDelay"
|
|
386
|
+
],
|
|
387
|
+
"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.",
|
|
388
|
+
"properties": {
|
|
389
|
+
"maxRetries": {
|
|
390
|
+
"type": "number"
|
|
391
|
+
},
|
|
392
|
+
"retryDelay": {
|
|
393
|
+
"type": "number"
|
|
394
|
+
},
|
|
395
|
+
"backoffMultiplier": {
|
|
396
|
+
"type": "number"
|
|
397
|
+
},
|
|
398
|
+
"maxDelay": {
|
|
399
|
+
"type": "number"
|
|
400
|
+
},
|
|
401
|
+
"retryOnErrorTypes": {
|
|
402
|
+
"type": "array",
|
|
403
|
+
"items": {
|
|
404
|
+
"type": "string"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
"nonRetryableErrorTypes": {
|
|
408
|
+
"type": "array",
|
|
409
|
+
"items": {
|
|
410
|
+
"type": "string"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
"additionalProperties": false
|
|
415
|
+
},
|
|
416
|
+
"canOptions": {
|
|
417
|
+
"type": "object",
|
|
418
|
+
"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.",
|
|
419
|
+
"properties": {
|
|
420
|
+
"taskQueue": {
|
|
421
|
+
"type": "string",
|
|
422
|
+
"minLength": 1,
|
|
423
|
+
"maxLength": 256
|
|
424
|
+
},
|
|
425
|
+
"retry": {
|
|
426
|
+
"oneOf": [
|
|
427
|
+
{
|
|
428
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"$ref": "#/$defs/legacyCanRetryPolicy"
|
|
432
|
+
}
|
|
433
|
+
]
|
|
434
|
+
},
|
|
435
|
+
"workflowTaskTimeout": {
|
|
436
|
+
"type": "integer",
|
|
437
|
+
"minimum": 0
|
|
438
|
+
},
|
|
439
|
+
"context": {
|
|
440
|
+
"type": "object"
|
|
441
|
+
},
|
|
442
|
+
"versioningBehavior": {
|
|
443
|
+
"enum": [
|
|
444
|
+
"PINNED",
|
|
445
|
+
"AUTO_UPGRADE"
|
|
446
|
+
]
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
"additionalProperties": false
|
|
450
|
+
},
|
|
288
451
|
"headers": {
|
|
289
452
|
"type": "object",
|
|
290
453
|
"additionalProperties": {
|
|
@@ -391,6 +554,35 @@
|
|
|
391
554
|
"type": "string",
|
|
392
555
|
"minLength": 1,
|
|
393
556
|
"maxLength": 256
|
|
557
|
+
},
|
|
558
|
+
"startDelayMs": {
|
|
559
|
+
"type": "integer",
|
|
560
|
+
"minimum": 0,
|
|
561
|
+
"description": "R2: the start delay of a delayed run (11 §2.23); the first task waits for it."
|
|
562
|
+
},
|
|
563
|
+
"runAttempt": {
|
|
564
|
+
"type": "integer",
|
|
565
|
+
"minimum": 1,
|
|
566
|
+
"description": "R2: the run-level retry attempt (11 §2.17), 1-based."
|
|
567
|
+
},
|
|
568
|
+
"businessId": {
|
|
569
|
+
"type": "string",
|
|
570
|
+
"description": "R2: the workflow id (11 §2.1), stored as WorkflowRun.businessId."
|
|
571
|
+
},
|
|
572
|
+
"workflowId": {
|
|
573
|
+
"type": "string",
|
|
574
|
+
"description": "R2: the same value as businessId."
|
|
575
|
+
},
|
|
576
|
+
"timeouts": {
|
|
577
|
+
"$ref": "#/$defs/timeouts"
|
|
578
|
+
},
|
|
579
|
+
"retry": {
|
|
580
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
581
|
+
},
|
|
582
|
+
"priority": {
|
|
583
|
+
"type": "integer",
|
|
584
|
+
"minimum": 1,
|
|
585
|
+
"maximum": 5
|
|
394
586
|
}
|
|
395
587
|
}
|
|
396
588
|
},
|
|
@@ -441,6 +633,9 @@
|
|
|
441
633
|
"type": "integer",
|
|
442
634
|
"minimum": 1,
|
|
443
635
|
"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."
|
|
636
|
+
},
|
|
637
|
+
"version": {
|
|
638
|
+
"description": "R2: the workflow version whose bundle served the task (it differs from WORKFLOW_STARTED.version after an AUTO_UPGRADE or a versioning override)."
|
|
444
639
|
}
|
|
445
640
|
}
|
|
446
641
|
},
|
|
@@ -1217,6 +1412,19 @@
|
|
|
1217
1412
|
"attempts": {
|
|
1218
1413
|
"type": "integer",
|
|
1219
1414
|
"minimum": 1
|
|
1415
|
+
},
|
|
1416
|
+
"nodeType": {
|
|
1417
|
+
"type": "string",
|
|
1418
|
+
"minLength": 1,
|
|
1419
|
+
"maxLength": 256
|
|
1420
|
+
},
|
|
1421
|
+
"operation": {
|
|
1422
|
+
"type": "string",
|
|
1423
|
+
"minLength": 1,
|
|
1424
|
+
"maxLength": 256
|
|
1425
|
+
},
|
|
1426
|
+
"summary": {
|
|
1427
|
+
"type": "string"
|
|
1220
1428
|
}
|
|
1221
1429
|
}
|
|
1222
1430
|
},
|
|
@@ -1239,6 +1447,19 @@
|
|
|
1239
1447
|
"attempts": {
|
|
1240
1448
|
"type": "integer",
|
|
1241
1449
|
"minimum": 1
|
|
1450
|
+
},
|
|
1451
|
+
"nodeType": {
|
|
1452
|
+
"type": "string",
|
|
1453
|
+
"minLength": 1,
|
|
1454
|
+
"maxLength": 256
|
|
1455
|
+
},
|
|
1456
|
+
"operation": {
|
|
1457
|
+
"type": "string",
|
|
1458
|
+
"minLength": 1,
|
|
1459
|
+
"maxLength": 256
|
|
1460
|
+
},
|
|
1461
|
+
"summary": {
|
|
1462
|
+
"type": "string"
|
|
1242
1463
|
}
|
|
1243
1464
|
}
|
|
1244
1465
|
},
|
|
@@ -1316,7 +1537,44 @@
|
|
|
1316
1537
|
"override"
|
|
1317
1538
|
],
|
|
1318
1539
|
"properties": {
|
|
1319
|
-
"override": {
|
|
1540
|
+
"override": {
|
|
1541
|
+
"description": "The per-run override (11 §2.27): { behavior: PINNED, version } pins the run, { behavior: AUTO_UPGRADE } upgrades it, null removes the override.",
|
|
1542
|
+
"oneOf": [
|
|
1543
|
+
{
|
|
1544
|
+
"type": "null"
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
"type": "object",
|
|
1548
|
+
"required": [
|
|
1549
|
+
"behavior",
|
|
1550
|
+
"version"
|
|
1551
|
+
],
|
|
1552
|
+
"properties": {
|
|
1553
|
+
"behavior": {
|
|
1554
|
+
"const": "PINNED"
|
|
1555
|
+
},
|
|
1556
|
+
"version": {}
|
|
1557
|
+
},
|
|
1558
|
+
"additionalProperties": false
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
"type": "object",
|
|
1562
|
+
"required": [
|
|
1563
|
+
"behavior"
|
|
1564
|
+
],
|
|
1565
|
+
"properties": {
|
|
1566
|
+
"behavior": {
|
|
1567
|
+
"const": "AUTO_UPGRADE"
|
|
1568
|
+
}
|
|
1569
|
+
},
|
|
1570
|
+
"additionalProperties": false
|
|
1571
|
+
}
|
|
1572
|
+
]
|
|
1573
|
+
},
|
|
1574
|
+
"actor": {},
|
|
1575
|
+
"reason": {
|
|
1576
|
+
"type": "string"
|
|
1577
|
+
}
|
|
1320
1578
|
}
|
|
1321
1579
|
},
|
|
1322
1580
|
"payload_WORKFLOW_COMPLETED": {
|
|
@@ -1367,6 +1625,9 @@
|
|
|
1367
1625
|
"WORKFLOW_RUN",
|
|
1368
1626
|
"WORKFLOW_EXECUTION"
|
|
1369
1627
|
]
|
|
1628
|
+
},
|
|
1629
|
+
"failure": {
|
|
1630
|
+
"$ref": "#/$defs/failure"
|
|
1370
1631
|
}
|
|
1371
1632
|
}
|
|
1372
1633
|
},
|
|
@@ -1379,7 +1640,8 @@
|
|
|
1379
1640
|
"properties": {
|
|
1380
1641
|
"input": {},
|
|
1381
1642
|
"options": {
|
|
1382
|
-
"type": "object"
|
|
1643
|
+
"type": "object",
|
|
1644
|
+
"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."
|
|
1383
1645
|
},
|
|
1384
1646
|
"newRunId": {
|
|
1385
1647
|
"type": "string"
|
|
@@ -2453,10 +2715,17 @@
|
|
|
2453
2715
|
"businessId": {
|
|
2454
2716
|
"type": "string"
|
|
2455
2717
|
},
|
|
2718
|
+
"workflowId": {
|
|
2719
|
+
"type": "string"
|
|
2720
|
+
},
|
|
2456
2721
|
"attempt": {
|
|
2457
2722
|
"type": "integer",
|
|
2458
2723
|
"minimum": 1
|
|
2459
2724
|
},
|
|
2725
|
+
"runAttempt": {
|
|
2726
|
+
"type": "integer",
|
|
2727
|
+
"minimum": 1
|
|
2728
|
+
},
|
|
2460
2729
|
"taskQueue": {
|
|
2461
2730
|
"type": "string"
|
|
2462
2731
|
},
|
|
@@ -2537,6 +2806,18 @@
|
|
|
2537
2806
|
},
|
|
2538
2807
|
"context": {
|
|
2539
2808
|
"type": "object"
|
|
2809
|
+
},
|
|
2810
|
+
"memo": {
|
|
2811
|
+
"type": "object"
|
|
2812
|
+
},
|
|
2813
|
+
"versioningBehavior": {
|
|
2814
|
+
"enum": [
|
|
2815
|
+
"PINNED",
|
|
2816
|
+
"AUTO_UPGRADE"
|
|
2817
|
+
]
|
|
2818
|
+
},
|
|
2819
|
+
"retry": {
|
|
2820
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
2540
2821
|
}
|
|
2541
2822
|
}
|
|
2542
2823
|
}
|
package/schema/ir-v2.schema.json
CHANGED
|
@@ -463,6 +463,38 @@
|
|
|
463
463
|
"PINNED",
|
|
464
464
|
"AUTO_UPGRADE"
|
|
465
465
|
]
|
|
466
|
+
},
|
|
467
|
+
"retry": {
|
|
468
|
+
"type": "object",
|
|
469
|
+
"description": "Run-level retry of DURABLE_FN runs (11 §2.17); delays are seconds or duration strings. Graph runs keep their own meaning of retry.",
|
|
470
|
+
"properties": {
|
|
471
|
+
"maxAttempts": {
|
|
472
|
+
"type": "integer",
|
|
473
|
+
"minimum": 1
|
|
474
|
+
},
|
|
475
|
+
"initialDelay": {
|
|
476
|
+
"type": [
|
|
477
|
+
"number",
|
|
478
|
+
"string"
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
"backoffMultiplier": {
|
|
482
|
+
"type": "number",
|
|
483
|
+
"minimum": 1
|
|
484
|
+
},
|
|
485
|
+
"maxDelay": {
|
|
486
|
+
"type": [
|
|
487
|
+
"number",
|
|
488
|
+
"string"
|
|
489
|
+
]
|
|
490
|
+
},
|
|
491
|
+
"nonRetryableErrorTypes": {
|
|
492
|
+
"type": "array",
|
|
493
|
+
"items": {
|
|
494
|
+
"type": "string"
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
466
498
|
}
|
|
467
499
|
}
|
|
468
500
|
},
|
|
@@ -588,6 +620,10 @@
|
|
|
588
620
|
},
|
|
589
621
|
"taskQueue": {
|
|
590
622
|
"type": "string"
|
|
623
|
+
},
|
|
624
|
+
"config": {
|
|
625
|
+
"$ref": "#/$defs/config",
|
|
626
|
+
"description": "R2: the run-level settings of this function's workflow() declaration (retry, timeout, executionTimeout, workflowTaskTimeout, versioningBehavior). The service resolves run options per workflowFn from this table, never from the definition-level config, so a same-bundle child started on its parent's definition gets its own settings. Absent: the function declares none."
|
|
591
627
|
}
|
|
592
628
|
}
|
|
593
629
|
}
|
|
@@ -616,6 +652,15 @@
|
|
|
616
652
|
"isolate",
|
|
617
653
|
"worker"
|
|
618
654
|
]
|
|
655
|
+
},
|
|
656
|
+
"features": {
|
|
657
|
+
"type": "array",
|
|
658
|
+
"items": {
|
|
659
|
+
"type": "string",
|
|
660
|
+
"minLength": 1
|
|
661
|
+
},
|
|
662
|
+
"uniqueItems": true,
|
|
663
|
+
"description": "Runtime features the bundle uses (C-FEATURES, SDK R2): localActivity, externalCancel, childOptions, canOptions, autoUpgrade, runRetry, timeouts; Phase C adds userActivity, updates, queries, searchAttributes, dynamic and interceptors. A bundle without the field was built before R2 and uses none."
|
|
619
664
|
}
|
|
620
665
|
}
|
|
621
666
|
},
|