You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/openapi-v2-workflows.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9986,7 +9986,7 @@
9986
9986
},
9987
9987
"durablyRecorded": {
9988
9988
"type": "boolean",
9989
-
"description": "Whether this request durably recorded a cancellation. False when an already-cancelled run needed no further durable write."
9989
+
"description": "Whether this request durably recorded a cancellation. Always false for a run that was already terminal, where the request is satisfied but nothing was written."
9990
9990
},
9991
9991
"locallyAborted": {
9992
9992
"type": "boolean",
@@ -9997,7 +9997,7 @@
9997
9997
"description": "Whether a paused execution was cancelled."
9998
9998
},
9999
9999
"reason": {
10000
-
"description": "Machine-readable cancellation outcome. `recorded`, `queue_cancelled`, and `already_cancelled` are successful outcomes; the remaining values identify a degraded or incomplete cancellation step.",
10000
+
"description": "Machine-readable cancellation outcome, present on every cancellation including full successes. `recorded` and `queue_cancelled` are successful cancellation values. `already_cancelled`, `already_completed`, and `already_failed` mean the run had already reached that terminal state, so nothing was cancelled and `durablyRecorded` is false. The remaining values identify a degraded or incomplete cancellation step.",
10001
10001
"type": "string",
10002
10002
"enum": [
10003
10003
"recorded",
@@ -10024,7 +10024,7 @@
10024
10024
],
10025
10025
"additionalProperties": false,
10026
10026
"title": "Cancel workflow run result",
10027
-
"description": "Outcome of the shared workflow-run cancellation lifecycle used by internal UI, Copilot, and v2 callers."
10027
+
"description": "Outcome of a workflowrun cancellation request. Cancellation is best-effort: a run already in a terminal state succeeds with no effect, reported as `durablyRecorded: false` with an `already_*` reason naming the state observed."
Copy file name to clipboardExpand all lines: apps/sim/lib/api/contracts/v2/workflows.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1865,21 +1865,21 @@ export const v2CancelWorkflowRunDataSchema = z
1865
1865
durablyRecorded: z
1866
1866
.boolean()
1867
1867
.describe(
1868
-
'Whether this request durably recorded a cancellation. False when an already-cancelled run needed no further durable write.'
1868
+
'Whether this request durably recorded a cancellation. Always false for a run that was already terminal, where the request is satisfied but nothing was written.'
1869
1869
),
1870
1870
locallyAborted: z.boolean().describe('Whether an in-process execution was aborted.'),
1871
1871
pausedCancelled: z.boolean().describe('Whether a paused execution was cancelled.'),
1872
1872
reason: cancelWorkflowExecutionReasonSchema
1873
1873
.optional()
1874
1874
.describe(
1875
-
'Machine-readable cancellation outcome. `recorded`, `queue_cancelled`, and `already_cancelled` are successful outcomes; the remaining values identify a degraded or incomplete cancellation step.'
1875
+
'Machine-readable cancellation outcome, present on every cancellation including full successes. `recorded` and `queue_cancelled` are successful cancellation values. `already_cancelled`, `already_completed`, and `already_failed` mean the run had already reached that terminal state, so nothing was cancelled and `durablyRecorded` is false. The remaining values identify a degraded or incomplete cancellation step.'
1876
1876
),
1877
1877
})
1878
1878
.meta({
1879
1879
id: 'CancelWorkflowRunResult',
1880
1880
title: 'Cancel workflow run result',
1881
1881
description:
1882
-
'Outcome of the shared workflow-run cancellation lifecycle used by internal UI, Copilot, and v2 callers.',
1882
+
'Outcome of a workflowrun cancellation request. Cancellation is best-effort: a run already in a terminal state succeeds with no effect, reported as `durablyRecorded: false` with an `already_*` reason naming the state observed.',
0 commit comments