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
{{ message }}
Repository navigation
Commit 8b842bd
Browse filesBrowse the repository at this point in the historyBrowse files
ks-release-bot
committed
chore(release): regenerate ksapi v1.131.1 from ks-backend
Copy file name to clipboardExpand all lines: ksapi/api/workflow_runs_api.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2620,7 +2620,7 @@ def stop_workflow_run(
2620
2620
) ->WorkflowRunResponse:
2621
2621
"""Stop Workflow Run Handler
2622
2622
2623
-
Stop a running workflow run, terminalizing it so its thread un-bricks. While a run sits ``IN_PROGRESS`` its run thread is read-only: every new USER message 409s (``run_in_progress``). A user \"stop\" must therefore move the run out of ``IN_PROGRESS``. We mark it ``FAILED`` (\"Stopped by user\") with a pure DB write that does **not** depend on Temporal — so this same call also recovers a run already stranded ``IN_PROGRESS`` by a cancel whose terminal callback never landed (the permanent-brick case) — then best-effort cancel its Temporal workflow. Idempotent: a run already in a terminal state (or notyetstarted) is returned unchanged. The terminal-state guard in ``mark_run_failed`` plus the callback handler's ``already_terminal`` no-op make a real completion landing concurrently safe (last writer is ignored, never an error).
2623
+
Stop a running workflow run, terminalizing it so its thread un-bricks. Marks the run ``FAILED`` (\"Stopped by user\") with a pure DB write (no Temporal dependency, so it also recovers a run stranded ``IN_PROGRESS`` by a lost cancel callback), then best-effort revokes the streaming reply's lease and cancels the Temporal workflow. Revoking the lease is what makes stop authoritative — the cancel only *requests* a cooperative stop; see docs/api/notification_system.md for the lease protocol. Idempotent: a terminal or not-yet-started run is returned unchanged (the ``mark_run_failed`` guard + the callback's ``already_terminal`` no-op keep a real completion landing concurrently safe).
Stop a running workflow run, terminalizing it so its thread un-bricks. While a run sits ``IN_PROGRESS`` its run thread is read-only: every new USER message 409s (``run_in_progress``). A user \"stop\" must therefore move the run out of ``IN_PROGRESS``. We mark it ``FAILED`` (\"Stopped by user\") with a pure DB write that does **not** depend on Temporal — so this same call also recovers a run already stranded ``IN_PROGRESS`` by a cancel whose terminal callback never landed (the permanent-brick case) — then best-effort cancel its Temporal workflow. Idempotent: a run already in a terminal state (or notyetstarted) is returned unchanged. The terminal-state guard in ``mark_run_failed`` plus the callback handler's ``already_terminal`` no-op make a real completion landing concurrently safe (last writer is ignored, never an error).
2691
+
Stop a running workflow run, terminalizing it so its thread un-bricks. Marks the run ``FAILED`` (\"Stopped by user\") with a pure DB write (no Temporal dependency, so it also recovers a run stranded ``IN_PROGRESS`` by a lost cancel callback), then best-effort revokes the streaming reply's lease and cancels the Temporal workflow. Revoking the lease is what makes stop authoritative — the cancel only *requests* a cooperative stop; see docs/api/notification_system.md for the lease protocol. Idempotent: a terminal or not-yet-started run is returned unchanged (the ``mark_run_failed`` guard + the callback's ``already_terminal`` no-op keep a real completion landing concurrently safe).
Stop a running workflow run, terminalizing it so its thread un-bricks. While a run sits ``IN_PROGRESS`` its run thread is read-only: every new USER message 409s (``run_in_progress``). A user \"stop\" must therefore move the run out of ``IN_PROGRESS``. We mark it ``FAILED`` (\"Stopped by user\") with a pure DB write that does **not** depend on Temporal — so this same call also recovers a run already stranded ``IN_PROGRESS`` by a cancel whose terminal callback never landed (the permanent-brick case) — then best-effort cancel its Temporal workflow. Idempotent: a run already in a terminal state (or notyetstarted) is returned unchanged. The terminal-state guard in ``mark_run_failed`` plus the callback handler's ``already_terminal`` no-op make a real completion landing concurrently safe (last writer is ignored, never an error).
2759
+
Stop a running workflow run, terminalizing it so its thread un-bricks. Marks the run ``FAILED`` (\"Stopped by user\") with a pure DB write (no Temporal dependency, so it also recovers a run stranded ``IN_PROGRESS`` by a lost cancel callback), then best-effort revokes the streaming reply's lease and cancels the Temporal workflow. Revoking the lease is what makes stop authoritative — the cancel only *requests* a cooperative stop; see docs/api/notification_system.md for the lease protocol. Idempotent: a terminal or not-yet-started run is returned unchanged (the ``mark_run_failed`` guard + the callback's ``already_terminal`` no-op keep a real completion landing concurrently safe).
0 commit comments