@lostgradient/weft 0.20.0 → 0.22.0
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 +2 -2
- package/dist/cli/generated/operation-catalog.snapshot.json +207 -80
- package/dist/cli/generated/operation-client.generated.d.ts +120 -43
- package/dist/client/http-client-storage.js +1 -1
- package/dist/core/engine/activity-reconciliation.d.ts +2 -2
- package/dist/core/engine/activity-reconciliation.js +12 -8
- package/dist/core/engine/async-activity-completion.js +12 -4
- package/dist/core/engine/async-activity-records.d.ts +11 -1
- package/dist/core/engine/async-activity-records.js +4 -3
- package/dist/core/engine/attributes-tags.d.ts +11 -1
- package/dist/core/engine/attributes-tags.js +4 -3
- package/dist/core/engine/bulk-operations-purge.js +5 -2
- package/dist/core/engine/bulk-operations.js +17 -5
- package/dist/core/engine/callback-creators-bundles.js +1 -1
- package/dist/core/engine/callback-creators-core.js +4 -2
- package/dist/core/engine/checkpoint-io.js +1 -1
- package/dist/core/engine/child-workflow.js +2 -1
- package/dist/core/engine/completed-review-storage.js +1 -1
- package/dist/core/engine/condition-waiters.d.ts +45 -3
- package/dist/core/engine/condition-waiters.js +12 -3
- package/dist/core/engine/disposal.js +6 -0
- package/dist/core/engine/engine-internal-types.d.ts +12 -4
- package/dist/core/engine/fenced-write.d.ts +46 -15
- package/dist/core/engine/fenced-write.js +39 -6
- package/dist/core/engine/finalizer-state.d.ts +3 -1
- package/dist/core/engine/handle-result.d.ts +49 -1
- package/dist/core/engine/handle-result.js +95 -20
- package/dist/core/engine/index.d.ts +13 -5
- package/dist/core/engine/index.js +155 -5
- package/dist/core/engine/inline-launch-queue.js +9 -0
- package/dist/core/engine/internals.d.ts +73 -0
- package/dist/core/engine/invoke-update-handler.d.ts +19 -0
- package/dist/core/engine/invoke-update-handler.js +7 -0
- package/dist/core/engine/lease-deposition.d.ts +132 -0
- package/dist/core/engine/lease-deposition.js +31 -0
- package/dist/core/engine/lease-errors.d.ts +80 -9
- package/dist/core/engine/lease-errors.js +28 -2
- package/dist/core/engine/lifecycle/resume.js +3 -1
- package/dist/core/engine/lifecycle/standalone-claim-acquire.d.ts +33 -0
- package/dist/core/engine/lifecycle/standalone-claim-acquire.js +25 -0
- package/dist/core/engine/lifecycle/start-commit.js +20 -6
- package/dist/core/engine/lifecycle/transition.d.ts +15 -1
- package/dist/core/engine/lifecycle/transition.js +6 -3
- package/dist/core/engine/operations-activity.js +1 -1
- package/dist/core/engine/operations-time.js +21 -7
- package/dist/core/engine/owner-side-signal-poll.d.ts +132 -0
- package/dist/core/engine/owner-side-signal-poll.js +22 -0
- package/dist/core/engine/owner-side-update-poll.d.ts +116 -0
- package/dist/core/engine/owner-side-update-poll.js +22 -0
- package/dist/core/engine/ownership-bootstrap.d.ts +280 -0
- package/dist/core/engine/ownership-bootstrap.js +89 -0
- package/dist/core/engine/ownership-mode-marker.d.ts +82 -0
- package/dist/core/engine/ownership-mode-marker.js +52 -0
- package/dist/core/engine/ownership-options.d.ts +22 -6
- package/dist/core/engine/ownership-options.js +42 -12
- package/dist/core/engine/pending-updates.js +35 -24
- package/dist/core/engine/queries.d.ts +70 -0
- package/dist/core/engine/queries.js +58 -4
- package/dist/core/engine/schedules.js +1 -1
- package/dist/core/engine/signals.d.ts +11 -1
- package/dist/core/engine/signals.js +11 -7
- package/dist/core/engine/sleep-timer-acknowledgements.d.ts +68 -0
- package/dist/core/engine/sleep-timer-acknowledgements.js +19 -0
- package/dist/core/engine/storage-io.d.ts +58 -10
- package/dist/core/engine/storage-io.js +27 -9
- package/dist/core/engine/termination/cleanup.d.ts +5 -4
- package/dist/core/engine/termination/complete.js +23 -4
- package/dist/core/engine/termination/finalizer-claim.js +4 -4
- package/dist/core/engine/termination/state-commit-callbacks.d.ts +15 -0
- package/dist/core/engine/termination/state-commit-callbacks.js +0 -0
- package/dist/core/engine/termination/suspend.js +1 -1
- package/dist/core/engine/update-validation.d.ts +28 -0
- package/dist/core/engine/update-validation.js +37 -0
- package/dist/core/engine/updates.d.ts +17 -16
- package/dist/core/engine/updates.js +24 -47
- package/dist/core/engine/wake-ownership-check.d.ts +86 -0
- package/dist/core/engine/wake-ownership-check.js +19 -0
- package/dist/core/engine/wake-ownership-guard.d.ts +46 -0
- package/dist/core/engine/wake-ownership-guard.js +23 -0
- package/dist/core/engine/workflow-claim-codec.d.ts +64 -0
- package/dist/core/engine/workflow-claim-codec.js +44 -0
- package/dist/core/engine/workflow-claim-cooldown.d.ts +60 -0
- package/dist/core/engine/workflow-claim-cooldown.js +17 -0
- package/dist/core/engine/workflow-claim-fold.d.ts +82 -0
- package/dist/core/engine/workflow-claim-fold.js +53 -0
- package/dist/core/engine/workflow-claim-metrics.d.ts +131 -0
- package/dist/core/engine/workflow-claim-metrics.js +62 -0
- package/dist/core/engine/workflow-claim-reclaim-scan.d.ts +96 -0
- package/dist/core/engine/workflow-claim-reclaim-scan.js +66 -0
- package/dist/core/engine/workflow-claim-reclaim-target.d.ts +107 -0
- package/dist/core/engine/workflow-claim-reclaim-target.js +155 -0
- package/dist/core/engine/workflow-claim-registry.d.ts +227 -0
- package/dist/core/engine/workflow-claim-registry.js +198 -0
- package/dist/core/engine/workflow-claim-renewal-interval.d.ts +50 -0
- package/dist/core/engine/workflow-claim-renewal-interval.js +132 -0
- package/dist/core/engine/workflow-claim-renewal-subpasses.d.ts +265 -0
- package/dist/core/engine/workflow-claim-renewal-subpasses.js +104 -0
- package/dist/core/engine/workflow-claim-renewal-task.d.ts +159 -0
- package/dist/core/engine/workflow-claim-renewal-task.js +65 -0
- package/dist/core/engine/workflow-claim-transitions.d.ts +186 -0
- package/dist/core/engine/workflow-claim-transitions.js +120 -0
- package/dist/core/inline-execution-strategy.d.ts +20 -0
- package/dist/core/inline-execution-strategy.js +15 -4
- package/dist/core/scheduler/scheduler-class.js +3 -3
- package/dist/core/scheduler/timer-sources.d.ts +13 -0
- package/dist/core/scheduler/timer-sources.js +1 -1
- package/dist/core/types/options.d.ts +17 -1
- package/dist/core/weft-error.d.ts +1 -1
- package/dist/core/weft-error.js +2 -1
- package/dist/http.js +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8 -0
- package/dist/indexeddb.js +1 -1
- package/dist/json-schema.js +3 -3
- package/dist/observability/index.js +2 -2
- package/dist/server/operations/get-task-diagnostics.d.ts +115 -25
- package/dist/server/operations/get-task-diagnostics.js +93 -7
- package/dist/storage/auto.js +1 -1
- package/dist/storage/bun-sql.js +115 -2
- package/dist/storage/compressed-storage.js +1 -1
- package/dist/storage/http.js +1 -1
- package/dist/storage/index.d.ts +38 -35
- package/dist/storage/interface.d.ts +87 -125
- package/dist/storage/interface.js +1 -1
- package/dist/storage/key-encoding.d.ts +51 -0
- package/dist/storage/key-encoding.js +13 -0
- package/dist/storage/key-prefixes.d.ts +1 -1
- package/dist/storage/key-prefixes.js +3 -0
- package/dist/storage/lmdb.js +1 -1
- package/dist/storage/memory.js +1 -1
- package/dist/storage/neon.js +4 -4
- package/dist/storage/node-sqlite.js +115 -2
- package/dist/storage/ownership-keys.d.ts +55 -0
- package/dist/storage/ownership-keys.js +6 -0
- package/dist/storage/postgres.js +4 -4
- package/dist/storage/resolve.js +1 -1
- package/dist/storage/scoped-storage.js +1 -1
- package/dist/storage/testing.js +1 -1
- package/dist/storage/turso.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/web-extension.js +1 -1
- package/dist/worker/protocol.js +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Weft
|
|
2
2
|
|
|
3
|
-
A Bun-native durable execution engine. Current release: `0.
|
|
3
|
+
A Bun-native durable execution engine. Current release: `0.22.0`.
|
|
4
4
|
|
|
5
5
|
Install the library from npm as `@lostgradient/weft`:
|
|
6
6
|
|
|
@@ -96,7 +96,7 @@ const result = await handle.result();
|
|
|
96
96
|
|
|
97
97
|
That's the core loop: `workflow({ name })` is a **chained builder** that co-locates the workflow's side-effecting steps inside `.activities({...})`, and `.execute(fn)` seals it all together and returns a `WorkflowDefinition`. Inside the generator, `ctx.run('formatGreeting', input)` autocompletes from the workflow's own activity table, typechecks the input, and infers the output. Every `yield*` is a checkpoint boundary; `handle.result()` waits for the output. Checkpoints are written to `./weft.db`, so running workflows survive process crashes.
|
|
98
98
|
|
|
99
|
-
`Engine.create()` does the registration dance for you: it constructs the engine and registers each workflow in the `workflows` map, pulling in all the activities each workflow declares. It then **recovers by default** — `engine.recoverAll()` runs after registration, so any workflows still running from a previous process pick up where they left off. That's the point of durable storage, so you don't have to ask for it. Pass `recover: false` to opt out (handy for tests, for `ScopedStorage`-isolated engines, or when you want to inspect a store before migrating it). Durability is separate: each step is persisted before it commits no matter what `recover` is set to — `recover` only decides whether _this_ engine resumes that persisted work on boot. If a host owns recovery but still needs durable timers, use `startScheduler: true`; otherwise `recover: false` also leaves the real-time scheduler stopped.
|
|
99
|
+
`Engine.create()` does the registration dance for you: it constructs the engine and registers each workflow in the `workflows` map, pulling in all the activities each workflow declares. It then **recovers by default** — `engine.recoverAll()` runs after registration, so any workflows still running from a previous process pick up where they left off. That's the point of durable storage, so you don't have to ask for it. Pass `recover: false` to opt out (handy for tests, for `ScopedStorage`-isolated engines, or when you want to inspect a store before migrating it). Durability is separate: each step is persisted before it commits no matter what `recover` is set to — `recover` only decides whether _this_ engine resumes that persisted work on boot. If a host owns recovery but still needs durable timers, use `startScheduler: true`; otherwise `recover: false` also leaves the real-time scheduler stopped. By default (`ownership: 'none'`) run a single engine per durable store: pointing two at the same store is uncoordinated and can double-resume a workflow. To share one store across engines, select `ownership: 'workflow-lease'`, which claims each workflow for exactly one engine before its generator runs.
|
|
100
100
|
|
|
101
101
|
Passing an explicitly empty workflow map is the same default-registry boot shape as omitting `workflows`: `Engine.create({ workflows: {} })` recovers after registration and returns an engine whose TypeScript type is compatible with default-registry consumers such as `serve({ engine })`. Use a non-empty `workflows` map when you want TypeScript to narrow `engine.start(...)` to the registered names.
|
|
102
102
|
|
|
@@ -1620,6 +1620,10 @@
|
|
|
1620
1620
|
"inputSchema": {
|
|
1621
1621
|
"additionalProperties": false,
|
|
1622
1622
|
"properties": {
|
|
1623
|
+
"includeExpectedDelayed": {
|
|
1624
|
+
"default": false,
|
|
1625
|
+
"type": "boolean"
|
|
1626
|
+
},
|
|
1623
1627
|
"limit": {
|
|
1624
1628
|
"default": 50,
|
|
1625
1629
|
"maximum": 200,
|
|
@@ -1652,6 +1656,12 @@
|
|
|
1652
1656
|
"minimum": 0,
|
|
1653
1657
|
"type": "integer"
|
|
1654
1658
|
},
|
|
1659
|
+
"unadoptedAfterMs": {
|
|
1660
|
+
"default": 60000,
|
|
1661
|
+
"maximum": 9007199254740991,
|
|
1662
|
+
"minimum": 0,
|
|
1663
|
+
"type": "integer"
|
|
1664
|
+
},
|
|
1655
1665
|
"workflowId": {
|
|
1656
1666
|
"minLength": 1,
|
|
1657
1667
|
"type": "string"
|
|
@@ -1661,6 +1671,8 @@
|
|
|
1661
1671
|
"staleQueuedAfterMs",
|
|
1662
1672
|
"staleHeartbeatAfterMs",
|
|
1663
1673
|
"retryStormMinimumAttempts",
|
|
1674
|
+
"includeExpectedDelayed",
|
|
1675
|
+
"unadoptedAfterMs",
|
|
1664
1676
|
"limit"
|
|
1665
1677
|
],
|
|
1666
1678
|
"type": "object"
|
|
@@ -1670,90 +1682,193 @@
|
|
|
1670
1682
|
"properties": {
|
|
1671
1683
|
"items": {
|
|
1672
1684
|
"items": {
|
|
1673
|
-
"
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
"
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
"
|
|
1685
|
+
"anyOf": [
|
|
1686
|
+
{
|
|
1687
|
+
"additionalProperties": false,
|
|
1688
|
+
"properties": {
|
|
1689
|
+
"activityName": {
|
|
1690
|
+
"type": "string"
|
|
1691
|
+
},
|
|
1692
|
+
"deadLetterReason": {
|
|
1693
|
+
"const": "result-resolution-storage-exhausted",
|
|
1694
|
+
"type": "string"
|
|
1695
|
+
},
|
|
1696
|
+
"deadLetteredAt": {
|
|
1697
|
+
"minimum": 0,
|
|
1698
|
+
"type": "number"
|
|
1699
|
+
},
|
|
1700
|
+
"evidence": {
|
|
1701
|
+
"items": {
|
|
1702
|
+
"type": "string"
|
|
1703
|
+
},
|
|
1704
|
+
"type": "array"
|
|
1705
|
+
},
|
|
1706
|
+
"executionLatencyMs": {
|
|
1707
|
+
"minimum": 0,
|
|
1708
|
+
"type": "number"
|
|
1709
|
+
},
|
|
1710
|
+
"heartbeatAgeMs": {
|
|
1711
|
+
"minimum": 0,
|
|
1712
|
+
"type": "number"
|
|
1713
|
+
},
|
|
1714
|
+
"kind": {
|
|
1715
|
+
"enum": [
|
|
1716
|
+
"stuck-queued",
|
|
1717
|
+
"stale-inflight",
|
|
1718
|
+
"retry-storm",
|
|
1719
|
+
"all-workers-at-capacity",
|
|
1720
|
+
"dead-lettered"
|
|
1721
|
+
],
|
|
1722
|
+
"type": "string"
|
|
1723
|
+
},
|
|
1724
|
+
"lastRequeueReason": {
|
|
1725
|
+
"type": "string"
|
|
1726
|
+
},
|
|
1727
|
+
"operationId": {
|
|
1728
|
+
"type": "string"
|
|
1729
|
+
},
|
|
1730
|
+
"queue": {
|
|
1731
|
+
"type": "string"
|
|
1732
|
+
},
|
|
1733
|
+
"queueLatencyMs": {
|
|
1734
|
+
"minimum": 0,
|
|
1735
|
+
"type": "number"
|
|
1736
|
+
},
|
|
1737
|
+
"requeueCount": {
|
|
1738
|
+
"maximum": 9007199254740991,
|
|
1739
|
+
"minimum": 0,
|
|
1740
|
+
"type": "integer"
|
|
1741
|
+
},
|
|
1742
|
+
"resolutionReason": {
|
|
1743
|
+
"type": "string"
|
|
1744
|
+
},
|
|
1745
|
+
"retryAttempts": {
|
|
1746
|
+
"maximum": 9007199254740991,
|
|
1747
|
+
"minimum": 0,
|
|
1748
|
+
"type": "integer"
|
|
1749
|
+
},
|
|
1750
|
+
"retryCount": {
|
|
1751
|
+
"maximum": 9007199254740991,
|
|
1752
|
+
"minimum": 0,
|
|
1753
|
+
"type": "integer"
|
|
1754
|
+
},
|
|
1755
|
+
"state": {
|
|
1756
|
+
"enum": ["queued", "inflight", "resolved", "capacity", "dead-lettered"],
|
|
1757
|
+
"type": "string"
|
|
1758
|
+
},
|
|
1759
|
+
"storageError": {
|
|
1760
|
+
"type": "string"
|
|
1761
|
+
},
|
|
1762
|
+
"workerId": {
|
|
1763
|
+
"type": "string"
|
|
1764
|
+
},
|
|
1765
|
+
"workflowId": {
|
|
1766
|
+
"type": "string"
|
|
1767
|
+
}
|
|
1689
1768
|
},
|
|
1690
|
-
"
|
|
1691
|
-
|
|
1692
|
-
"executionLatencyMs": {
|
|
1693
|
-
"minimum": 0,
|
|
1694
|
-
"type": "number"
|
|
1695
|
-
},
|
|
1696
|
-
"heartbeatAgeMs": {
|
|
1697
|
-
"minimum": 0,
|
|
1698
|
-
"type": "number"
|
|
1769
|
+
"required": ["kind", "state", "retryCount", "requeueCount", "evidence"],
|
|
1770
|
+
"type": "object"
|
|
1699
1771
|
},
|
|
1700
|
-
|
|
1701
|
-
"
|
|
1702
|
-
|
|
1703
|
-
"
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1772
|
+
{
|
|
1773
|
+
"additionalProperties": false,
|
|
1774
|
+
"properties": {
|
|
1775
|
+
"availableAt": {
|
|
1776
|
+
"minimum": 0,
|
|
1777
|
+
"type": "number"
|
|
1778
|
+
},
|
|
1779
|
+
"evidence": {
|
|
1780
|
+
"items": {
|
|
1781
|
+
"type": "string"
|
|
1782
|
+
},
|
|
1783
|
+
"type": "array"
|
|
1784
|
+
},
|
|
1785
|
+
"kind": {
|
|
1786
|
+
"const": "delayed",
|
|
1787
|
+
"type": "string"
|
|
1788
|
+
},
|
|
1789
|
+
"operationId": {
|
|
1790
|
+
"type": "string"
|
|
1791
|
+
},
|
|
1792
|
+
"queue": {
|
|
1793
|
+
"type": "string"
|
|
1794
|
+
},
|
|
1795
|
+
"requeueCount": {
|
|
1796
|
+
"maximum": 9007199254740991,
|
|
1797
|
+
"minimum": 0,
|
|
1798
|
+
"type": "integer"
|
|
1799
|
+
},
|
|
1800
|
+
"retryCount": {
|
|
1801
|
+
"maximum": 9007199254740991,
|
|
1802
|
+
"minimum": 0,
|
|
1803
|
+
"type": "integer"
|
|
1804
|
+
},
|
|
1805
|
+
"state": {
|
|
1806
|
+
"const": "queued",
|
|
1807
|
+
"type": "string"
|
|
1808
|
+
},
|
|
1809
|
+
"workflowId": {
|
|
1810
|
+
"type": "string"
|
|
1811
|
+
}
|
|
1812
|
+
},
|
|
1813
|
+
"required": [
|
|
1814
|
+
"kind",
|
|
1815
|
+
"state",
|
|
1816
|
+
"operationId",
|
|
1817
|
+
"queue",
|
|
1818
|
+
"retryCount",
|
|
1819
|
+
"requeueCount",
|
|
1820
|
+
"availableAt",
|
|
1821
|
+
"evidence"
|
|
1707
1822
|
],
|
|
1708
|
-
"type": "
|
|
1709
|
-
},
|
|
1710
|
-
"lastRequeueReason": {
|
|
1711
|
-
"type": "string"
|
|
1712
|
-
},
|
|
1713
|
-
"operationId": {
|
|
1714
|
-
"type": "string"
|
|
1715
|
-
},
|
|
1716
|
-
"queue": {
|
|
1717
|
-
"type": "string"
|
|
1718
|
-
},
|
|
1719
|
-
"queueLatencyMs": {
|
|
1720
|
-
"minimum": 0,
|
|
1721
|
-
"type": "number"
|
|
1722
|
-
},
|
|
1723
|
-
"requeueCount": {
|
|
1724
|
-
"maximum": 9007199254740991,
|
|
1725
|
-
"minimum": 0,
|
|
1726
|
-
"type": "integer"
|
|
1727
|
-
},
|
|
1728
|
-
"resolutionReason": {
|
|
1729
|
-
"type": "string"
|
|
1730
|
-
},
|
|
1731
|
-
"retryAttempts": {
|
|
1732
|
-
"maximum": 9007199254740991,
|
|
1733
|
-
"minimum": 0,
|
|
1734
|
-
"type": "integer"
|
|
1735
|
-
},
|
|
1736
|
-
"retryCount": {
|
|
1737
|
-
"maximum": 9007199254740991,
|
|
1738
|
-
"minimum": 0,
|
|
1739
|
-
"type": "integer"
|
|
1740
|
-
},
|
|
1741
|
-
"state": {
|
|
1742
|
-
"enum": ["queued", "inflight", "resolved", "capacity", "dead-lettered"],
|
|
1743
|
-
"type": "string"
|
|
1744
|
-
},
|
|
1745
|
-
"storageError": {
|
|
1746
|
-
"type": "string"
|
|
1747
|
-
},
|
|
1748
|
-
"workerId": {
|
|
1749
|
-
"type": "string"
|
|
1823
|
+
"type": "object"
|
|
1750
1824
|
},
|
|
1751
|
-
|
|
1752
|
-
"
|
|
1825
|
+
{
|
|
1826
|
+
"additionalProperties": false,
|
|
1827
|
+
"properties": {
|
|
1828
|
+
"adopted": {
|
|
1829
|
+
"const": false,
|
|
1830
|
+
"type": "boolean"
|
|
1831
|
+
},
|
|
1832
|
+
"evidence": {
|
|
1833
|
+
"items": {
|
|
1834
|
+
"type": "string"
|
|
1835
|
+
},
|
|
1836
|
+
"type": "array"
|
|
1837
|
+
},
|
|
1838
|
+
"kind": {
|
|
1839
|
+
"const": "unadopted-terminal",
|
|
1840
|
+
"type": "string"
|
|
1841
|
+
},
|
|
1842
|
+
"operationId": {
|
|
1843
|
+
"type": "string"
|
|
1844
|
+
},
|
|
1845
|
+
"queue": {
|
|
1846
|
+
"type": "string"
|
|
1847
|
+
},
|
|
1848
|
+
"state": {
|
|
1849
|
+
"const": "resolved",
|
|
1850
|
+
"type": "string"
|
|
1851
|
+
},
|
|
1852
|
+
"terminalAt": {
|
|
1853
|
+
"minimum": 0,
|
|
1854
|
+
"type": "number"
|
|
1855
|
+
},
|
|
1856
|
+
"workflowId": {
|
|
1857
|
+
"type": "string"
|
|
1858
|
+
}
|
|
1859
|
+
},
|
|
1860
|
+
"required": [
|
|
1861
|
+
"kind",
|
|
1862
|
+
"state",
|
|
1863
|
+
"operationId",
|
|
1864
|
+
"queue",
|
|
1865
|
+
"terminalAt",
|
|
1866
|
+
"adopted",
|
|
1867
|
+
"evidence"
|
|
1868
|
+
],
|
|
1869
|
+
"type": "object"
|
|
1753
1870
|
}
|
|
1754
|
-
|
|
1755
|
-
"required": ["kind", "state", "retryCount", "requeueCount", "evidence"],
|
|
1756
|
-
"type": "object"
|
|
1871
|
+
]
|
|
1757
1872
|
},
|
|
1758
1873
|
"type": "array"
|
|
1759
1874
|
},
|
|
@@ -1775,6 +1890,11 @@
|
|
|
1775
1890
|
"minimum": 0,
|
|
1776
1891
|
"type": "integer"
|
|
1777
1892
|
},
|
|
1893
|
+
"delayed": {
|
|
1894
|
+
"maximum": 9007199254740991,
|
|
1895
|
+
"minimum": 0,
|
|
1896
|
+
"type": "integer"
|
|
1897
|
+
},
|
|
1778
1898
|
"retryStorms": {
|
|
1779
1899
|
"maximum": 9007199254740991,
|
|
1780
1900
|
"minimum": 0,
|
|
@@ -1789,6 +1909,11 @@
|
|
|
1789
1909
|
"maximum": 9007199254740991,
|
|
1790
1910
|
"minimum": 0,
|
|
1791
1911
|
"type": "integer"
|
|
1912
|
+
},
|
|
1913
|
+
"unadoptedTerminal": {
|
|
1914
|
+
"maximum": 9007199254740991,
|
|
1915
|
+
"minimum": 0,
|
|
1916
|
+
"type": "integer"
|
|
1792
1917
|
}
|
|
1793
1918
|
},
|
|
1794
1919
|
"required": [
|
|
@@ -1796,7 +1921,9 @@
|
|
|
1796
1921
|
"staleInflight",
|
|
1797
1922
|
"retryStorms",
|
|
1798
1923
|
"allWorkersAtCapacity",
|
|
1799
|
-
"deadLettered"
|
|
1924
|
+
"deadLettered",
|
|
1925
|
+
"delayed",
|
|
1926
|
+
"unadoptedTerminal"
|
|
1800
1927
|
],
|
|
1801
1928
|
"type": "object"
|
|
1802
1929
|
}
|