@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
|
@@ -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,14 +1337,119 @@
|
|
|
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
|
+
]
|
|
1363
|
+
},
|
|
1364
|
+
"fairnessKey": {
|
|
1365
|
+
"type": "string",
|
|
1366
|
+
"minLength": 1,
|
|
1367
|
+
"maxLength": 255,
|
|
1368
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
1369
|
+
},
|
|
1370
|
+
"fairnessWeight": {
|
|
1371
|
+
"type": "number",
|
|
1372
|
+
"minimum": 0.1,
|
|
1373
|
+
"maximum": 10,
|
|
1374
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
1269
1375
|
}
|
|
1270
1376
|
}
|
|
1271
1377
|
},
|
|
1378
|
+
"legacyCanRetryPolicy": {
|
|
1379
|
+
"type": "object",
|
|
1380
|
+
"required": [
|
|
1381
|
+
"retryDelay"
|
|
1382
|
+
],
|
|
1383
|
+
"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.",
|
|
1384
|
+
"properties": {
|
|
1385
|
+
"maxRetries": {
|
|
1386
|
+
"type": "number"
|
|
1387
|
+
},
|
|
1388
|
+
"retryDelay": {
|
|
1389
|
+
"type": "number"
|
|
1390
|
+
},
|
|
1391
|
+
"backoffMultiplier": {
|
|
1392
|
+
"type": "number"
|
|
1393
|
+
},
|
|
1394
|
+
"maxDelay": {
|
|
1395
|
+
"type": "number"
|
|
1396
|
+
},
|
|
1397
|
+
"retryOnErrorTypes": {
|
|
1398
|
+
"type": "array",
|
|
1399
|
+
"items": {
|
|
1400
|
+
"type": "string"
|
|
1401
|
+
}
|
|
1402
|
+
},
|
|
1403
|
+
"nonRetryableErrorTypes": {
|
|
1404
|
+
"type": "array",
|
|
1405
|
+
"items": {
|
|
1406
|
+
"type": "string"
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
"additionalProperties": false
|
|
1411
|
+
},
|
|
1412
|
+
"canOptions": {
|
|
1413
|
+
"type": "object",
|
|
1414
|
+
"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.",
|
|
1415
|
+
"properties": {
|
|
1416
|
+
"taskQueue": {
|
|
1417
|
+
"type": "string",
|
|
1418
|
+
"minLength": 1,
|
|
1419
|
+
"maxLength": 256
|
|
1420
|
+
},
|
|
1421
|
+
"retry": {
|
|
1422
|
+
"oneOf": [
|
|
1423
|
+
{
|
|
1424
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"$ref": "#/$defs/legacyCanRetryPolicy"
|
|
1428
|
+
}
|
|
1429
|
+
]
|
|
1430
|
+
},
|
|
1431
|
+
"workflowTaskTimeout": {
|
|
1432
|
+
"type": "integer",
|
|
1433
|
+
"minimum": 0
|
|
1434
|
+
},
|
|
1435
|
+
"context": {
|
|
1436
|
+
"type": "object"
|
|
1437
|
+
},
|
|
1438
|
+
"versioningBehavior": {
|
|
1439
|
+
"enum": [
|
|
1440
|
+
"PINNED",
|
|
1441
|
+
"AUTO_UPGRADE"
|
|
1442
|
+
]
|
|
1443
|
+
}
|
|
1444
|
+
},
|
|
1445
|
+
"additionalProperties": false
|
|
1446
|
+
},
|
|
1272
1447
|
"headers": {
|
|
1273
1448
|
"type": "object",
|
|
1274
1449
|
"additionalProperties": {
|
|
1275
1450
|
"type": "string"
|
|
1276
|
-
}
|
|
1451
|
+
},
|
|
1452
|
+
"description": "Interceptor headers (11 §2.10): string values; a user activity carries at most 16 KiB of JSON (checked by validateCommands)."
|
|
1277
1453
|
},
|
|
1278
1454
|
"payload_WORKFLOW_STARTED": {
|
|
1279
1455
|
"type": "object",
|
|
@@ -1375,6 +1551,54 @@
|
|
|
1375
1551
|
"type": "string",
|
|
1376
1552
|
"minLength": 1,
|
|
1377
1553
|
"maxLength": 256
|
|
1554
|
+
},
|
|
1555
|
+
"startDelayMs": {
|
|
1556
|
+
"type": "integer",
|
|
1557
|
+
"minimum": 0,
|
|
1558
|
+
"description": "R2: the start delay of a delayed run (11 §2.23); the first task waits for it."
|
|
1559
|
+
},
|
|
1560
|
+
"runAttempt": {
|
|
1561
|
+
"type": "integer",
|
|
1562
|
+
"minimum": 1,
|
|
1563
|
+
"description": "R2: the run-level retry attempt (11 §2.17), 1-based."
|
|
1564
|
+
},
|
|
1565
|
+
"businessId": {
|
|
1566
|
+
"type": "string",
|
|
1567
|
+
"description": "R2: the workflow id (11 §2.1), stored as WorkflowRun.businessId."
|
|
1568
|
+
},
|
|
1569
|
+
"workflowId": {
|
|
1570
|
+
"type": "string",
|
|
1571
|
+
"description": "R2: the same value as businessId."
|
|
1572
|
+
},
|
|
1573
|
+
"timeouts": {
|
|
1574
|
+
"$ref": "#/$defs/timeouts"
|
|
1575
|
+
},
|
|
1576
|
+
"retry": {
|
|
1577
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
1578
|
+
},
|
|
1579
|
+
"priority": {
|
|
1580
|
+
"type": "integer",
|
|
1581
|
+
"minimum": 1,
|
|
1582
|
+
"maximum": 5
|
|
1583
|
+
},
|
|
1584
|
+
"headers": {
|
|
1585
|
+
"$ref": "#/$defs/headers"
|
|
1586
|
+
},
|
|
1587
|
+
"searchAttributes": {
|
|
1588
|
+
"type": "object",
|
|
1589
|
+
"description": "Phase C: the search attributes the start set (11 §2.8)."
|
|
1590
|
+
},
|
|
1591
|
+
"fairnessKey": {
|
|
1592
|
+
"type": "string",
|
|
1593
|
+
"minLength": 1,
|
|
1594
|
+
"maxLength": 255,
|
|
1595
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
1596
|
+
},
|
|
1597
|
+
"fairnessWeight": {
|
|
1598
|
+
"type": "number",
|
|
1599
|
+
"minimum": 0.1,
|
|
1600
|
+
"maximum": 10,
|
|
1601
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
1378
1602
|
}
|
|
1379
1603
|
}
|
|
1380
1604
|
},
|
|
@@ -1425,6 +1649,9 @@
|
|
|
1425
1649
|
"type": "integer",
|
|
1426
1650
|
"minimum": 1,
|
|
1427
1651
|
"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."
|
|
1652
|
+
},
|
|
1653
|
+
"version": {
|
|
1654
|
+
"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
1655
|
}
|
|
1429
1656
|
}
|
|
1430
1657
|
},
|
|
@@ -1509,85 +1736,193 @@
|
|
|
1509
1736
|
}
|
|
1510
1737
|
},
|
|
1511
1738
|
"payload_ACTIVITY_SCHEDULED": {
|
|
1512
|
-
"
|
|
1513
|
-
"
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1739
|
+
"description": "The SCHEDULE_ACTIVITY command as the service accepted it: kind node, or kind user (Phase C) with activityName, taskQueue, fairness, connections and headers.",
|
|
1740
|
+
"oneOf": [
|
|
1741
|
+
{
|
|
1742
|
+
"type": "object",
|
|
1743
|
+
"required": [
|
|
1744
|
+
"activityId",
|
|
1745
|
+
"kind",
|
|
1746
|
+
"nodeType",
|
|
1747
|
+
"operation",
|
|
1748
|
+
"args",
|
|
1749
|
+
"retry"
|
|
1750
|
+
],
|
|
1751
|
+
"properties": {
|
|
1752
|
+
"activityId": {
|
|
1753
|
+
"type": "string",
|
|
1754
|
+
"minLength": 1,
|
|
1755
|
+
"maxLength": 256
|
|
1756
|
+
},
|
|
1757
|
+
"args": {},
|
|
1758
|
+
"retry": {
|
|
1759
|
+
"$ref": "#/$defs/retryPolicy"
|
|
1760
|
+
},
|
|
1761
|
+
"startToCloseTimeout": {
|
|
1762
|
+
"type": "integer",
|
|
1763
|
+
"minimum": 0
|
|
1764
|
+
},
|
|
1765
|
+
"scheduleToCloseTimeout": {
|
|
1766
|
+
"type": "integer",
|
|
1767
|
+
"minimum": 0
|
|
1768
|
+
},
|
|
1769
|
+
"scheduleToStartTimeout": {
|
|
1770
|
+
"type": "integer",
|
|
1771
|
+
"minimum": 0
|
|
1772
|
+
},
|
|
1773
|
+
"heartbeatTimeout": {
|
|
1774
|
+
"type": "integer",
|
|
1775
|
+
"minimum": 0
|
|
1776
|
+
},
|
|
1777
|
+
"cancellationType": {
|
|
1778
|
+
"enum": [
|
|
1779
|
+
"WAIT_CANCELLATION_COMPLETED",
|
|
1780
|
+
"TRY_CANCEL",
|
|
1781
|
+
"ABANDON"
|
|
1782
|
+
]
|
|
1783
|
+
},
|
|
1784
|
+
"priority": {
|
|
1785
|
+
"type": "integer",
|
|
1786
|
+
"minimum": 1,
|
|
1787
|
+
"maximum": 5
|
|
1788
|
+
},
|
|
1789
|
+
"summary": {
|
|
1790
|
+
"type": "string",
|
|
1791
|
+
"maxLength": 200
|
|
1792
|
+
},
|
|
1793
|
+
"fairnessKey": {
|
|
1794
|
+
"type": "string",
|
|
1795
|
+
"minLength": 1,
|
|
1796
|
+
"maxLength": 255,
|
|
1797
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
1798
|
+
},
|
|
1799
|
+
"fairnessWeight": {
|
|
1800
|
+
"type": "number",
|
|
1801
|
+
"minimum": 0.1,
|
|
1802
|
+
"maximum": 10,
|
|
1803
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
1804
|
+
},
|
|
1805
|
+
"kind": {
|
|
1806
|
+
"const": "node"
|
|
1807
|
+
},
|
|
1808
|
+
"nodeType": {
|
|
1809
|
+
"type": "string",
|
|
1810
|
+
"minLength": 1,
|
|
1811
|
+
"maxLength": 256
|
|
1812
|
+
},
|
|
1813
|
+
"nodeVersion": {
|
|
1814
|
+
"type": "string"
|
|
1815
|
+
},
|
|
1816
|
+
"operation": {
|
|
1817
|
+
"type": "string",
|
|
1818
|
+
"minLength": 1,
|
|
1819
|
+
"maxLength": 256
|
|
1820
|
+
},
|
|
1821
|
+
"connection": {
|
|
1822
|
+
"type": "string",
|
|
1823
|
+
"minLength": 1,
|
|
1824
|
+
"maxLength": 256
|
|
1825
|
+
},
|
|
1826
|
+
"runOn": {
|
|
1827
|
+
"type": "string"
|
|
1828
|
+
},
|
|
1829
|
+
"headers": {
|
|
1830
|
+
"$ref": "#/$defs/headers"
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1586
1833
|
},
|
|
1587
|
-
|
|
1588
|
-
"type": "
|
|
1834
|
+
{
|
|
1835
|
+
"type": "object",
|
|
1836
|
+
"required": [
|
|
1837
|
+
"activityId",
|
|
1838
|
+
"kind",
|
|
1839
|
+
"activityName",
|
|
1840
|
+
"taskQueue",
|
|
1841
|
+
"args",
|
|
1842
|
+
"retry"
|
|
1843
|
+
],
|
|
1844
|
+
"properties": {
|
|
1845
|
+
"activityId": {
|
|
1846
|
+
"type": "string",
|
|
1847
|
+
"minLength": 1,
|
|
1848
|
+
"maxLength": 256
|
|
1849
|
+
},
|
|
1850
|
+
"args": {},
|
|
1851
|
+
"retry": {
|
|
1852
|
+
"$ref": "#/$defs/retryPolicy"
|
|
1853
|
+
},
|
|
1854
|
+
"startToCloseTimeout": {
|
|
1855
|
+
"type": "integer",
|
|
1856
|
+
"minimum": 0
|
|
1857
|
+
},
|
|
1858
|
+
"scheduleToCloseTimeout": {
|
|
1859
|
+
"type": "integer",
|
|
1860
|
+
"minimum": 0
|
|
1861
|
+
},
|
|
1862
|
+
"scheduleToStartTimeout": {
|
|
1863
|
+
"type": "integer",
|
|
1864
|
+
"minimum": 0
|
|
1865
|
+
},
|
|
1866
|
+
"heartbeatTimeout": {
|
|
1867
|
+
"type": "integer",
|
|
1868
|
+
"minimum": 0
|
|
1869
|
+
},
|
|
1870
|
+
"cancellationType": {
|
|
1871
|
+
"enum": [
|
|
1872
|
+
"WAIT_CANCELLATION_COMPLETED",
|
|
1873
|
+
"TRY_CANCEL",
|
|
1874
|
+
"ABANDON"
|
|
1875
|
+
]
|
|
1876
|
+
},
|
|
1877
|
+
"priority": {
|
|
1878
|
+
"type": "integer",
|
|
1879
|
+
"minimum": 1,
|
|
1880
|
+
"maximum": 5
|
|
1881
|
+
},
|
|
1882
|
+
"summary": {
|
|
1883
|
+
"type": "string",
|
|
1884
|
+
"maxLength": 200
|
|
1885
|
+
},
|
|
1886
|
+
"fairnessKey": {
|
|
1887
|
+
"type": "string",
|
|
1888
|
+
"minLength": 1,
|
|
1889
|
+
"maxLength": 255,
|
|
1890
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
1891
|
+
},
|
|
1892
|
+
"fairnessWeight": {
|
|
1893
|
+
"type": "number",
|
|
1894
|
+
"minimum": 0.1,
|
|
1895
|
+
"maximum": 10,
|
|
1896
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
1897
|
+
},
|
|
1898
|
+
"kind": {
|
|
1899
|
+
"const": "user"
|
|
1900
|
+
},
|
|
1901
|
+
"activityName": {
|
|
1902
|
+
"type": "string",
|
|
1903
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,127}$"
|
|
1904
|
+
},
|
|
1905
|
+
"taskQueue": {
|
|
1906
|
+
"type": "string",
|
|
1907
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
|
|
1908
|
+
},
|
|
1909
|
+
"connections": {
|
|
1910
|
+
"type": "array",
|
|
1911
|
+
"maxItems": 16,
|
|
1912
|
+
"uniqueItems": true,
|
|
1913
|
+
"items": {
|
|
1914
|
+
"type": "string",
|
|
1915
|
+
"minLength": 1,
|
|
1916
|
+
"maxLength": 256
|
|
1917
|
+
},
|
|
1918
|
+
"description": "Connection names the worker may resolve for each started attempt (H2: declared by the definition and on the worker token allow-list)."
|
|
1919
|
+
},
|
|
1920
|
+
"headers": {
|
|
1921
|
+
"$ref": "#/$defs/headers"
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1589
1924
|
}
|
|
1590
|
-
|
|
1925
|
+
]
|
|
1591
1926
|
},
|
|
1592
1927
|
"payload_ACTIVITY_STARTED": {
|
|
1593
1928
|
"type": "object",
|
|
@@ -1849,6 +2184,9 @@
|
|
|
1849
2184
|
"actor": {},
|
|
1850
2185
|
"idempotencyKey": {
|
|
1851
2186
|
"type": "string"
|
|
2187
|
+
},
|
|
2188
|
+
"headers": {
|
|
2189
|
+
"$ref": "#/$defs/headers"
|
|
1852
2190
|
}
|
|
1853
2191
|
}
|
|
1854
2192
|
},
|
|
@@ -1869,7 +2207,10 @@
|
|
|
1869
2207
|
"minLength": 1,
|
|
1870
2208
|
"maxLength": 256
|
|
1871
2209
|
},
|
|
1872
|
-
"args": {}
|
|
2210
|
+
"args": {},
|
|
2211
|
+
"headers": {
|
|
2212
|
+
"$ref": "#/$defs/headers"
|
|
2213
|
+
}
|
|
1873
2214
|
}
|
|
1874
2215
|
},
|
|
1875
2216
|
"payload_UPDATE_ACCEPTED": {
|
|
@@ -1889,7 +2230,10 @@
|
|
|
1889
2230
|
"minLength": 1,
|
|
1890
2231
|
"maxLength": 256
|
|
1891
2232
|
},
|
|
1892
|
-
"args": {}
|
|
2233
|
+
"args": {},
|
|
2234
|
+
"headers": {
|
|
2235
|
+
"$ref": "#/$defs/headers"
|
|
2236
|
+
}
|
|
1893
2237
|
}
|
|
1894
2238
|
},
|
|
1895
2239
|
"payload_UPDATE_COMPLETED": {
|
|
@@ -1947,6 +2291,9 @@
|
|
|
1947
2291
|
"GRAPH",
|
|
1948
2292
|
"DURABLE_FN"
|
|
1949
2293
|
]
|
|
2294
|
+
},
|
|
2295
|
+
"headers": {
|
|
2296
|
+
"$ref": "#/$defs/headers"
|
|
1950
2297
|
}
|
|
1951
2298
|
}
|
|
1952
2299
|
},
|
|
@@ -2201,6 +2548,19 @@
|
|
|
2201
2548
|
"attempts": {
|
|
2202
2549
|
"type": "integer",
|
|
2203
2550
|
"minimum": 1
|
|
2551
|
+
},
|
|
2552
|
+
"nodeType": {
|
|
2553
|
+
"type": "string",
|
|
2554
|
+
"minLength": 1,
|
|
2555
|
+
"maxLength": 256
|
|
2556
|
+
},
|
|
2557
|
+
"operation": {
|
|
2558
|
+
"type": "string",
|
|
2559
|
+
"minLength": 1,
|
|
2560
|
+
"maxLength": 256
|
|
2561
|
+
},
|
|
2562
|
+
"summary": {
|
|
2563
|
+
"type": "string"
|
|
2204
2564
|
}
|
|
2205
2565
|
}
|
|
2206
2566
|
},
|
|
@@ -2223,6 +2583,19 @@
|
|
|
2223
2583
|
"attempts": {
|
|
2224
2584
|
"type": "integer",
|
|
2225
2585
|
"minimum": 1
|
|
2586
|
+
},
|
|
2587
|
+
"nodeType": {
|
|
2588
|
+
"type": "string",
|
|
2589
|
+
"minLength": 1,
|
|
2590
|
+
"maxLength": 256
|
|
2591
|
+
},
|
|
2592
|
+
"operation": {
|
|
2593
|
+
"type": "string",
|
|
2594
|
+
"minLength": 1,
|
|
2595
|
+
"maxLength": 256
|
|
2596
|
+
},
|
|
2597
|
+
"summary": {
|
|
2598
|
+
"type": "string"
|
|
2226
2599
|
}
|
|
2227
2600
|
}
|
|
2228
2601
|
},
|
|
@@ -2291,6 +2664,13 @@
|
|
|
2291
2664
|
},
|
|
2292
2665
|
"reason": {
|
|
2293
2666
|
"type": "string"
|
|
2667
|
+
},
|
|
2668
|
+
"actor": {},
|
|
2669
|
+
"reapplySignals": {
|
|
2670
|
+
"type": "boolean"
|
|
2671
|
+
},
|
|
2672
|
+
"reapplyUpdates": {
|
|
2673
|
+
"type": "boolean"
|
|
2294
2674
|
}
|
|
2295
2675
|
}
|
|
2296
2676
|
},
|
|
@@ -2300,7 +2680,44 @@
|
|
|
2300
2680
|
"override"
|
|
2301
2681
|
],
|
|
2302
2682
|
"properties": {
|
|
2303
|
-
"override": {
|
|
2683
|
+
"override": {
|
|
2684
|
+
"description": "The per-run override (11 §2.27): { behavior: PINNED, version } pins the run, { behavior: AUTO_UPGRADE } upgrades it, null removes the override.",
|
|
2685
|
+
"oneOf": [
|
|
2686
|
+
{
|
|
2687
|
+
"type": "null"
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
"type": "object",
|
|
2691
|
+
"required": [
|
|
2692
|
+
"behavior",
|
|
2693
|
+
"version"
|
|
2694
|
+
],
|
|
2695
|
+
"properties": {
|
|
2696
|
+
"behavior": {
|
|
2697
|
+
"const": "PINNED"
|
|
2698
|
+
},
|
|
2699
|
+
"version": {}
|
|
2700
|
+
},
|
|
2701
|
+
"additionalProperties": false
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
"type": "object",
|
|
2705
|
+
"required": [
|
|
2706
|
+
"behavior"
|
|
2707
|
+
],
|
|
2708
|
+
"properties": {
|
|
2709
|
+
"behavior": {
|
|
2710
|
+
"const": "AUTO_UPGRADE"
|
|
2711
|
+
}
|
|
2712
|
+
},
|
|
2713
|
+
"additionalProperties": false
|
|
2714
|
+
}
|
|
2715
|
+
]
|
|
2716
|
+
},
|
|
2717
|
+
"actor": {},
|
|
2718
|
+
"reason": {
|
|
2719
|
+
"type": "string"
|
|
2720
|
+
}
|
|
2304
2721
|
}
|
|
2305
2722
|
},
|
|
2306
2723
|
"payload_WORKFLOW_COMPLETED": {
|
|
@@ -2351,6 +2768,9 @@
|
|
|
2351
2768
|
"WORKFLOW_RUN",
|
|
2352
2769
|
"WORKFLOW_EXECUTION"
|
|
2353
2770
|
]
|
|
2771
|
+
},
|
|
2772
|
+
"failure": {
|
|
2773
|
+
"$ref": "#/$defs/failure"
|
|
2354
2774
|
}
|
|
2355
2775
|
}
|
|
2356
2776
|
},
|
|
@@ -2363,7 +2783,8 @@
|
|
|
2363
2783
|
"properties": {
|
|
2364
2784
|
"input": {},
|
|
2365
2785
|
"options": {
|
|
2366
|
-
"type": "object"
|
|
2786
|
+
"type": "object",
|
|
2787
|
+
"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
2788
|
},
|
|
2368
2789
|
"newRunId": {
|
|
2369
2790
|
"type": "string"
|