@fluidgrids/workflows 2026.1028.1 → 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-XB53G2DK.js → chunk-25BKWR2O.js} +1 -1
- package/dist/{chunk-CBL5JSCC.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-5HDSBTBX.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-3FOTFQ3J.js → chunk-MJ5TGYVG.js} +333 -65
- package/dist/{chunk-57MSZ24T.cjs → chunk-NXFBVDOI.cjs} +3 -3
- package/dist/{chunk-PDHLTDZB.js → chunk-OIX4O6UR.js} +38 -2
- package/dist/{chunk-HR3BN4C4.cjs → chunk-OKX3FYIM.cjs} +3 -3
- package/dist/{chunk-CSNWNFKU.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-yuPCFU5b.d.ts → file-cgL9l9l8.d.cts} +765 -14
- package/dist/{file-BOoHZgoQ.d.cts → 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-BuSvAFqi.d.cts → lower-3S6PsqjJ.d.cts} +41 -7
- package/dist/{lower-C_Qv_34S.d.ts → lower-DmZpQ8hJ.d.ts} +41 -7
- package/dist/lower-types-DQNBfWQn.d.cts +37 -0
- package/dist/lower-types-DQNBfWQn.d.ts +37 -0
- 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 +7 -7
- package/dist/quickjs/index.d.ts +7 -7
- package/dist/quickjs/index.js +8 -7
- package/dist/roundtrip/index.cjs +245 -43
- package/dist/roundtrip/index.d.cts +88 -11
- package/dist/roundtrip/index.d.ts +88 -11
- 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 +128 -11
- package/dist/testing/index.d.ts +128 -11
- 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-J-yYixny.d.cts → workflow-DWTPHFbt.d.ts} +124 -12
- package/dist/{workflow-C2a05WUJ.d.ts → 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-2DP2Y6EU.cjs +0 -832
- package/dist/chunk-2J6TF7YI.cjs +0 -86
- package/dist/chunk-7NQ37GZU.js +0 -73
- package/dist/chunk-BO6OVILK.js +0 -79
- package/dist/chunk-FQIHX7YI.cjs +0 -80
- package/dist/chunk-H7KEVW2M.js +0 -816
- package/dist/lower-types-nofRXw9c.d.cts +0 -15
- package/dist/lower-types-nofRXw9c.d.ts +0 -15
- package/dist/node-evaluator-CJNP4GHX.js +0 -12
- package/dist/node-evaluator-DMKPKUWA.cjs +0 -22
|
@@ -1189,6 +1189,7 @@
|
|
|
1189
1189
|
"workflowKey",
|
|
1190
1190
|
"workflowId"
|
|
1191
1191
|
],
|
|
1192
|
+
"description": "The open run of a workflow id, following its continue-as-new chain; firstRunId pins the chain (R2).",
|
|
1192
1193
|
"properties": {
|
|
1193
1194
|
"workflowKey": {
|
|
1194
1195
|
"type": "string",
|
|
@@ -1199,12 +1200,82 @@
|
|
|
1199
1200
|
"type": "string",
|
|
1200
1201
|
"minLength": 1,
|
|
1201
1202
|
"maxLength": 256
|
|
1203
|
+
},
|
|
1204
|
+
"firstRunId": {
|
|
1205
|
+
"type": "string",
|
|
1206
|
+
"minLength": 1,
|
|
1207
|
+
"maxLength": 256
|
|
1202
1208
|
}
|
|
1203
1209
|
},
|
|
1204
1210
|
"additionalProperties": false
|
|
1205
1211
|
}
|
|
1206
1212
|
]
|
|
1207
1213
|
},
|
|
1214
|
+
"runRetryPolicy": {
|
|
1215
|
+
"type": "object",
|
|
1216
|
+
"required": [
|
|
1217
|
+
"initialDelayMs"
|
|
1218
|
+
],
|
|
1219
|
+
"description": "Run-level retry (11 §2.17), in milliseconds. maxAttempts counts every attempt; absent means unlimited, bounded by the execution timeout.",
|
|
1220
|
+
"properties": {
|
|
1221
|
+
"maxAttempts": {
|
|
1222
|
+
"type": "integer",
|
|
1223
|
+
"minimum": 1
|
|
1224
|
+
},
|
|
1225
|
+
"initialDelayMs": {
|
|
1226
|
+
"type": "integer",
|
|
1227
|
+
"minimum": 0
|
|
1228
|
+
},
|
|
1229
|
+
"backoffMultiplier": {
|
|
1230
|
+
"type": "number",
|
|
1231
|
+
"minimum": 1
|
|
1232
|
+
},
|
|
1233
|
+
"maxDelayMs": {
|
|
1234
|
+
"type": "integer",
|
|
1235
|
+
"minimum": 0
|
|
1236
|
+
},
|
|
1237
|
+
"retryOnErrorTypes": {
|
|
1238
|
+
"type": "array",
|
|
1239
|
+
"items": {
|
|
1240
|
+
"enum": [
|
|
1241
|
+
"TIMEOUT",
|
|
1242
|
+
"TRANSIENT",
|
|
1243
|
+
"DEPENDENCY",
|
|
1244
|
+
"AUTHORIZATION",
|
|
1245
|
+
"VALIDATION",
|
|
1246
|
+
"PERMANENT",
|
|
1247
|
+
"UNKNOWN"
|
|
1248
|
+
]
|
|
1249
|
+
}
|
|
1250
|
+
},
|
|
1251
|
+
"nonRetryableErrorTypes": {
|
|
1252
|
+
"type": "array",
|
|
1253
|
+
"items": {
|
|
1254
|
+
"type": "string"
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
},
|
|
1258
|
+
"additionalProperties": false
|
|
1259
|
+
},
|
|
1260
|
+
"timeouts": {
|
|
1261
|
+
"type": "object",
|
|
1262
|
+
"description": "The three workflow timeouts (11 §2.20), in milliseconds.",
|
|
1263
|
+
"properties": {
|
|
1264
|
+
"executionTimeout": {
|
|
1265
|
+
"type": "integer",
|
|
1266
|
+
"minimum": 0
|
|
1267
|
+
},
|
|
1268
|
+
"runTimeout": {
|
|
1269
|
+
"type": "integer",
|
|
1270
|
+
"minimum": 0
|
|
1271
|
+
},
|
|
1272
|
+
"workflowTaskTimeout": {
|
|
1273
|
+
"type": "integer",
|
|
1274
|
+
"minimum": 0
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
"additionalProperties": false
|
|
1278
|
+
},
|
|
1208
1279
|
"childOptions": {
|
|
1209
1280
|
"type": "object",
|
|
1210
1281
|
"required": [
|
|
@@ -1266,9 +1337,101 @@
|
|
|
1266
1337
|
"startDelay": {
|
|
1267
1338
|
"type": "integer",
|
|
1268
1339
|
"minimum": 0
|
|
1340
|
+
},
|
|
1341
|
+
"retry": {
|
|
1342
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
1343
|
+
},
|
|
1344
|
+
"versioningBehavior": {
|
|
1345
|
+
"enum": [
|
|
1346
|
+
"PINNED",
|
|
1347
|
+
"AUTO_UPGRADE"
|
|
1348
|
+
]
|
|
1349
|
+
},
|
|
1350
|
+
"idReusePolicy": {
|
|
1351
|
+
"enum": [
|
|
1352
|
+
"ALLOW_DUPLICATE",
|
|
1353
|
+
"ALLOW_DUPLICATE_FAILED_ONLY",
|
|
1354
|
+
"REJECT_DUPLICATE"
|
|
1355
|
+
]
|
|
1356
|
+
},
|
|
1357
|
+
"idConflictPolicy": {
|
|
1358
|
+
"enum": [
|
|
1359
|
+
"FAIL",
|
|
1360
|
+
"USE_EXISTING",
|
|
1361
|
+
"TERMINATE_EXISTING"
|
|
1362
|
+
]
|
|
1269
1363
|
}
|
|
1270
1364
|
}
|
|
1271
1365
|
},
|
|
1366
|
+
"legacyCanRetryPolicy": {
|
|
1367
|
+
"type": "object",
|
|
1368
|
+
"required": [
|
|
1369
|
+
"retryDelay"
|
|
1370
|
+
],
|
|
1371
|
+
"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.",
|
|
1372
|
+
"properties": {
|
|
1373
|
+
"maxRetries": {
|
|
1374
|
+
"type": "number"
|
|
1375
|
+
},
|
|
1376
|
+
"retryDelay": {
|
|
1377
|
+
"type": "number"
|
|
1378
|
+
},
|
|
1379
|
+
"backoffMultiplier": {
|
|
1380
|
+
"type": "number"
|
|
1381
|
+
},
|
|
1382
|
+
"maxDelay": {
|
|
1383
|
+
"type": "number"
|
|
1384
|
+
},
|
|
1385
|
+
"retryOnErrorTypes": {
|
|
1386
|
+
"type": "array",
|
|
1387
|
+
"items": {
|
|
1388
|
+
"type": "string"
|
|
1389
|
+
}
|
|
1390
|
+
},
|
|
1391
|
+
"nonRetryableErrorTypes": {
|
|
1392
|
+
"type": "array",
|
|
1393
|
+
"items": {
|
|
1394
|
+
"type": "string"
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
},
|
|
1398
|
+
"additionalProperties": false
|
|
1399
|
+
},
|
|
1400
|
+
"canOptions": {
|
|
1401
|
+
"type": "object",
|
|
1402
|
+
"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.",
|
|
1403
|
+
"properties": {
|
|
1404
|
+
"taskQueue": {
|
|
1405
|
+
"type": "string",
|
|
1406
|
+
"minLength": 1,
|
|
1407
|
+
"maxLength": 256
|
|
1408
|
+
},
|
|
1409
|
+
"retry": {
|
|
1410
|
+
"oneOf": [
|
|
1411
|
+
{
|
|
1412
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
"$ref": "#/$defs/legacyCanRetryPolicy"
|
|
1416
|
+
}
|
|
1417
|
+
]
|
|
1418
|
+
},
|
|
1419
|
+
"workflowTaskTimeout": {
|
|
1420
|
+
"type": "integer",
|
|
1421
|
+
"minimum": 0
|
|
1422
|
+
},
|
|
1423
|
+
"context": {
|
|
1424
|
+
"type": "object"
|
|
1425
|
+
},
|
|
1426
|
+
"versioningBehavior": {
|
|
1427
|
+
"enum": [
|
|
1428
|
+
"PINNED",
|
|
1429
|
+
"AUTO_UPGRADE"
|
|
1430
|
+
]
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
"additionalProperties": false
|
|
1434
|
+
},
|
|
1272
1435
|
"headers": {
|
|
1273
1436
|
"type": "object",
|
|
1274
1437
|
"additionalProperties": {
|
|
@@ -1375,6 +1538,35 @@
|
|
|
1375
1538
|
"type": "string",
|
|
1376
1539
|
"minLength": 1,
|
|
1377
1540
|
"maxLength": 256
|
|
1541
|
+
},
|
|
1542
|
+
"startDelayMs": {
|
|
1543
|
+
"type": "integer",
|
|
1544
|
+
"minimum": 0,
|
|
1545
|
+
"description": "R2: the start delay of a delayed run (11 §2.23); the first task waits for it."
|
|
1546
|
+
},
|
|
1547
|
+
"runAttempt": {
|
|
1548
|
+
"type": "integer",
|
|
1549
|
+
"minimum": 1,
|
|
1550
|
+
"description": "R2: the run-level retry attempt (11 §2.17), 1-based."
|
|
1551
|
+
},
|
|
1552
|
+
"businessId": {
|
|
1553
|
+
"type": "string",
|
|
1554
|
+
"description": "R2: the workflow id (11 §2.1), stored as WorkflowRun.businessId."
|
|
1555
|
+
},
|
|
1556
|
+
"workflowId": {
|
|
1557
|
+
"type": "string",
|
|
1558
|
+
"description": "R2: the same value as businessId."
|
|
1559
|
+
},
|
|
1560
|
+
"timeouts": {
|
|
1561
|
+
"$ref": "#/$defs/timeouts"
|
|
1562
|
+
},
|
|
1563
|
+
"retry": {
|
|
1564
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
1565
|
+
},
|
|
1566
|
+
"priority": {
|
|
1567
|
+
"type": "integer",
|
|
1568
|
+
"minimum": 1,
|
|
1569
|
+
"maximum": 5
|
|
1378
1570
|
}
|
|
1379
1571
|
}
|
|
1380
1572
|
},
|
|
@@ -1425,6 +1617,9 @@
|
|
|
1425
1617
|
"type": "integer",
|
|
1426
1618
|
"minimum": 1,
|
|
1427
1619
|
"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."
|
|
1620
|
+
},
|
|
1621
|
+
"version": {
|
|
1622
|
+
"description": "R2: the workflow version whose bundle served the task (it differs from WORKFLOW_STARTED.version after an AUTO_UPGRADE or a versioning override)."
|
|
1428
1623
|
}
|
|
1429
1624
|
}
|
|
1430
1625
|
},
|
|
@@ -2201,6 +2396,19 @@
|
|
|
2201
2396
|
"attempts": {
|
|
2202
2397
|
"type": "integer",
|
|
2203
2398
|
"minimum": 1
|
|
2399
|
+
},
|
|
2400
|
+
"nodeType": {
|
|
2401
|
+
"type": "string",
|
|
2402
|
+
"minLength": 1,
|
|
2403
|
+
"maxLength": 256
|
|
2404
|
+
},
|
|
2405
|
+
"operation": {
|
|
2406
|
+
"type": "string",
|
|
2407
|
+
"minLength": 1,
|
|
2408
|
+
"maxLength": 256
|
|
2409
|
+
},
|
|
2410
|
+
"summary": {
|
|
2411
|
+
"type": "string"
|
|
2204
2412
|
}
|
|
2205
2413
|
}
|
|
2206
2414
|
},
|
|
@@ -2223,6 +2431,19 @@
|
|
|
2223
2431
|
"attempts": {
|
|
2224
2432
|
"type": "integer",
|
|
2225
2433
|
"minimum": 1
|
|
2434
|
+
},
|
|
2435
|
+
"nodeType": {
|
|
2436
|
+
"type": "string",
|
|
2437
|
+
"minLength": 1,
|
|
2438
|
+
"maxLength": 256
|
|
2439
|
+
},
|
|
2440
|
+
"operation": {
|
|
2441
|
+
"type": "string",
|
|
2442
|
+
"minLength": 1,
|
|
2443
|
+
"maxLength": 256
|
|
2444
|
+
},
|
|
2445
|
+
"summary": {
|
|
2446
|
+
"type": "string"
|
|
2226
2447
|
}
|
|
2227
2448
|
}
|
|
2228
2449
|
},
|
|
@@ -2300,7 +2521,44 @@
|
|
|
2300
2521
|
"override"
|
|
2301
2522
|
],
|
|
2302
2523
|
"properties": {
|
|
2303
|
-
"override": {
|
|
2524
|
+
"override": {
|
|
2525
|
+
"description": "The per-run override (11 §2.27): { behavior: PINNED, version } pins the run, { behavior: AUTO_UPGRADE } upgrades it, null removes the override.",
|
|
2526
|
+
"oneOf": [
|
|
2527
|
+
{
|
|
2528
|
+
"type": "null"
|
|
2529
|
+
},
|
|
2530
|
+
{
|
|
2531
|
+
"type": "object",
|
|
2532
|
+
"required": [
|
|
2533
|
+
"behavior",
|
|
2534
|
+
"version"
|
|
2535
|
+
],
|
|
2536
|
+
"properties": {
|
|
2537
|
+
"behavior": {
|
|
2538
|
+
"const": "PINNED"
|
|
2539
|
+
},
|
|
2540
|
+
"version": {}
|
|
2541
|
+
},
|
|
2542
|
+
"additionalProperties": false
|
|
2543
|
+
},
|
|
2544
|
+
{
|
|
2545
|
+
"type": "object",
|
|
2546
|
+
"required": [
|
|
2547
|
+
"behavior"
|
|
2548
|
+
],
|
|
2549
|
+
"properties": {
|
|
2550
|
+
"behavior": {
|
|
2551
|
+
"const": "AUTO_UPGRADE"
|
|
2552
|
+
}
|
|
2553
|
+
},
|
|
2554
|
+
"additionalProperties": false
|
|
2555
|
+
}
|
|
2556
|
+
]
|
|
2557
|
+
},
|
|
2558
|
+
"actor": {},
|
|
2559
|
+
"reason": {
|
|
2560
|
+
"type": "string"
|
|
2561
|
+
}
|
|
2304
2562
|
}
|
|
2305
2563
|
},
|
|
2306
2564
|
"payload_WORKFLOW_COMPLETED": {
|
|
@@ -2351,6 +2609,9 @@
|
|
|
2351
2609
|
"WORKFLOW_RUN",
|
|
2352
2610
|
"WORKFLOW_EXECUTION"
|
|
2353
2611
|
]
|
|
2612
|
+
},
|
|
2613
|
+
"failure": {
|
|
2614
|
+
"$ref": "#/$defs/failure"
|
|
2354
2615
|
}
|
|
2355
2616
|
}
|
|
2356
2617
|
},
|
|
@@ -2363,7 +2624,8 @@
|
|
|
2363
2624
|
"properties": {
|
|
2364
2625
|
"input": {},
|
|
2365
2626
|
"options": {
|
|
2366
|
-
"type": "object"
|
|
2627
|
+
"type": "object",
|
|
2628
|
+
"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."
|
|
2367
2629
|
},
|
|
2368
2630
|
"newRunId": {
|
|
2369
2631
|
"type": "string"
|
|
@@ -467,6 +467,7 @@
|
|
|
467
467
|
"workflowKey",
|
|
468
468
|
"workflowId"
|
|
469
469
|
],
|
|
470
|
+
"description": "The open run of a workflow id, following its continue-as-new chain; firstRunId pins the chain (R2).",
|
|
470
471
|
"properties": {
|
|
471
472
|
"workflowKey": {
|
|
472
473
|
"type": "string",
|
|
@@ -477,12 +478,82 @@
|
|
|
477
478
|
"type": "string",
|
|
478
479
|
"minLength": 1,
|
|
479
480
|
"maxLength": 256
|
|
481
|
+
},
|
|
482
|
+
"firstRunId": {
|
|
483
|
+
"type": "string",
|
|
484
|
+
"minLength": 1,
|
|
485
|
+
"maxLength": 256
|
|
480
486
|
}
|
|
481
487
|
},
|
|
482
488
|
"additionalProperties": false
|
|
483
489
|
}
|
|
484
490
|
]
|
|
485
491
|
},
|
|
492
|
+
"runRetryPolicy": {
|
|
493
|
+
"type": "object",
|
|
494
|
+
"required": [
|
|
495
|
+
"initialDelayMs"
|
|
496
|
+
],
|
|
497
|
+
"description": "Run-level retry (11 §2.17), in milliseconds. maxAttempts counts every attempt; absent means unlimited, bounded by the execution timeout.",
|
|
498
|
+
"properties": {
|
|
499
|
+
"maxAttempts": {
|
|
500
|
+
"type": "integer",
|
|
501
|
+
"minimum": 1
|
|
502
|
+
},
|
|
503
|
+
"initialDelayMs": {
|
|
504
|
+
"type": "integer",
|
|
505
|
+
"minimum": 0
|
|
506
|
+
},
|
|
507
|
+
"backoffMultiplier": {
|
|
508
|
+
"type": "number",
|
|
509
|
+
"minimum": 1
|
|
510
|
+
},
|
|
511
|
+
"maxDelayMs": {
|
|
512
|
+
"type": "integer",
|
|
513
|
+
"minimum": 0
|
|
514
|
+
},
|
|
515
|
+
"retryOnErrorTypes": {
|
|
516
|
+
"type": "array",
|
|
517
|
+
"items": {
|
|
518
|
+
"enum": [
|
|
519
|
+
"TIMEOUT",
|
|
520
|
+
"TRANSIENT",
|
|
521
|
+
"DEPENDENCY",
|
|
522
|
+
"AUTHORIZATION",
|
|
523
|
+
"VALIDATION",
|
|
524
|
+
"PERMANENT",
|
|
525
|
+
"UNKNOWN"
|
|
526
|
+
]
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
"nonRetryableErrorTypes": {
|
|
530
|
+
"type": "array",
|
|
531
|
+
"items": {
|
|
532
|
+
"type": "string"
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
"additionalProperties": false
|
|
537
|
+
},
|
|
538
|
+
"timeouts": {
|
|
539
|
+
"type": "object",
|
|
540
|
+
"description": "The three workflow timeouts (11 §2.20), in milliseconds.",
|
|
541
|
+
"properties": {
|
|
542
|
+
"executionTimeout": {
|
|
543
|
+
"type": "integer",
|
|
544
|
+
"minimum": 0
|
|
545
|
+
},
|
|
546
|
+
"runTimeout": {
|
|
547
|
+
"type": "integer",
|
|
548
|
+
"minimum": 0
|
|
549
|
+
},
|
|
550
|
+
"workflowTaskTimeout": {
|
|
551
|
+
"type": "integer",
|
|
552
|
+
"minimum": 0
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"additionalProperties": false
|
|
556
|
+
},
|
|
486
557
|
"childOptions": {
|
|
487
558
|
"type": "object",
|
|
488
559
|
"required": [
|
|
@@ -544,9 +615,101 @@
|
|
|
544
615
|
"startDelay": {
|
|
545
616
|
"type": "integer",
|
|
546
617
|
"minimum": 0
|
|
618
|
+
},
|
|
619
|
+
"retry": {
|
|
620
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
621
|
+
},
|
|
622
|
+
"versioningBehavior": {
|
|
623
|
+
"enum": [
|
|
624
|
+
"PINNED",
|
|
625
|
+
"AUTO_UPGRADE"
|
|
626
|
+
]
|
|
627
|
+
},
|
|
628
|
+
"idReusePolicy": {
|
|
629
|
+
"enum": [
|
|
630
|
+
"ALLOW_DUPLICATE",
|
|
631
|
+
"ALLOW_DUPLICATE_FAILED_ONLY",
|
|
632
|
+
"REJECT_DUPLICATE"
|
|
633
|
+
]
|
|
634
|
+
},
|
|
635
|
+
"idConflictPolicy": {
|
|
636
|
+
"enum": [
|
|
637
|
+
"FAIL",
|
|
638
|
+
"USE_EXISTING",
|
|
639
|
+
"TERMINATE_EXISTING"
|
|
640
|
+
]
|
|
547
641
|
}
|
|
548
642
|
}
|
|
549
643
|
},
|
|
644
|
+
"legacyCanRetryPolicy": {
|
|
645
|
+
"type": "object",
|
|
646
|
+
"required": [
|
|
647
|
+
"retryDelay"
|
|
648
|
+
],
|
|
649
|
+
"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.",
|
|
650
|
+
"properties": {
|
|
651
|
+
"maxRetries": {
|
|
652
|
+
"type": "number"
|
|
653
|
+
},
|
|
654
|
+
"retryDelay": {
|
|
655
|
+
"type": "number"
|
|
656
|
+
},
|
|
657
|
+
"backoffMultiplier": {
|
|
658
|
+
"type": "number"
|
|
659
|
+
},
|
|
660
|
+
"maxDelay": {
|
|
661
|
+
"type": "number"
|
|
662
|
+
},
|
|
663
|
+
"retryOnErrorTypes": {
|
|
664
|
+
"type": "array",
|
|
665
|
+
"items": {
|
|
666
|
+
"type": "string"
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
"nonRetryableErrorTypes": {
|
|
670
|
+
"type": "array",
|
|
671
|
+
"items": {
|
|
672
|
+
"type": "string"
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
"additionalProperties": false
|
|
677
|
+
},
|
|
678
|
+
"canOptions": {
|
|
679
|
+
"type": "object",
|
|
680
|
+
"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.",
|
|
681
|
+
"properties": {
|
|
682
|
+
"taskQueue": {
|
|
683
|
+
"type": "string",
|
|
684
|
+
"minLength": 1,
|
|
685
|
+
"maxLength": 256
|
|
686
|
+
},
|
|
687
|
+
"retry": {
|
|
688
|
+
"oneOf": [
|
|
689
|
+
{
|
|
690
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"$ref": "#/$defs/legacyCanRetryPolicy"
|
|
694
|
+
}
|
|
695
|
+
]
|
|
696
|
+
},
|
|
697
|
+
"workflowTaskTimeout": {
|
|
698
|
+
"type": "integer",
|
|
699
|
+
"minimum": 0
|
|
700
|
+
},
|
|
701
|
+
"context": {
|
|
702
|
+
"type": "object"
|
|
703
|
+
},
|
|
704
|
+
"versioningBehavior": {
|
|
705
|
+
"enum": [
|
|
706
|
+
"PINNED",
|
|
707
|
+
"AUTO_UPGRADE"
|
|
708
|
+
]
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
"additionalProperties": false
|
|
712
|
+
},
|
|
550
713
|
"headers": {
|
|
551
714
|
"type": "object",
|
|
552
715
|
"additionalProperties": {
|
|
@@ -939,6 +1102,20 @@
|
|
|
939
1102
|
"attempts": {
|
|
940
1103
|
"type": "integer",
|
|
941
1104
|
"minimum": 1
|
|
1105
|
+
},
|
|
1106
|
+
"nodeType": {
|
|
1107
|
+
"type": "string",
|
|
1108
|
+
"minLength": 1,
|
|
1109
|
+
"maxLength": 256
|
|
1110
|
+
},
|
|
1111
|
+
"operation": {
|
|
1112
|
+
"type": "string",
|
|
1113
|
+
"minLength": 1,
|
|
1114
|
+
"maxLength": 256
|
|
1115
|
+
},
|
|
1116
|
+
"summary": {
|
|
1117
|
+
"type": "string",
|
|
1118
|
+
"maxLength": 200
|
|
942
1119
|
}
|
|
943
1120
|
},
|
|
944
1121
|
"additionalProperties": false,
|
|
@@ -971,7 +1148,7 @@
|
|
|
971
1148
|
},
|
|
972
1149
|
"input": {},
|
|
973
1150
|
"options": {
|
|
974
|
-
"
|
|
1151
|
+
"$ref": "#/$defs/canOptions"
|
|
975
1152
|
}
|
|
976
1153
|
},
|
|
977
1154
|
"additionalProperties": false
|