Skip to content

Commit 8b842bd

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.131.1 from ks-backend
1 parent 99d078d commit 8b842bd

7 files changed

Lines changed: 18 additions & 20 deletions

File tree

‎docs/WorkflowRunsApi.md‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -795,18 +795,16 @@ Stop Workflow Run Handler
795795

796796
Stop a running workflow run, terminalizing it so its thread un-bricks.
797797

798-
While a run sits ``IN_PROGRESS`` its run thread is read-only: every new USER
799-
message 409s (``run_in_progress``). A user "stop" must therefore move the run
800-
out of ``IN_PROGRESS``. We mark it ``FAILED`` ("Stopped by user") with a pure
801-
DB write that does **not** depend on Temporal — so this same call also
802-
recovers a run already stranded ``IN_PROGRESS`` by a cancel whose terminal
803-
callback never landed (the permanent-brick case) — then best-effort cancel
804-
its Temporal workflow.
805-
806-
Idempotent: a run already in a terminal state (or not yet started) is
807-
returned unchanged. The terminal-state guard in ``mark_run_failed`` plus the
808-
callback handler's ``already_terminal`` no-op make a real completion landing
809-
concurrently safe (last writer is ignored, never an error).
798+
Marks the run ``FAILED`` ("Stopped by user") with a pure DB write (no Temporal
799+
dependency, so it also recovers a run stranded ``IN_PROGRESS`` by a lost
800+
cancel callback), then best-effort revokes the streaming reply's lease and
801+
cancels the Temporal workflow. Revoking the lease is what makes stop
802+
authoritative — the cancel only *requests* a cooperative stop; see
803+
docs/api/notification_system.md for the lease protocol.
804+
805+
Idempotent: a terminal or not-yet-started run is returned unchanged (the
806+
``mark_run_failed`` guard + the callback's ``already_terminal`` no-op keep a
807+
real completion landing concurrently safe).
810808

811809
### Example
812810

‎ksapi/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "1.131.0"
17+
__version__ = "1.131.1"
1818

1919
# Define package exports
2020
__all__ = [

‎ksapi/api/workflow_runs_api.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2620,7 +2620,7 @@ def stop_workflow_run(
26202620
) -> WorkflowRunResponse:
26212621
"""Stop Workflow Run Handler
26222622
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 not yet started) 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).
26242624
26252625
:param run_id: (required)
26262626
:type run_id: UUID
@@ -2688,7 +2688,7 @@ def stop_workflow_run_with_http_info(
26882688
) -> ApiResponse[WorkflowRunResponse]:
26892689
"""Stop Workflow Run Handler
26902690
2691-
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 not yet started) 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).
26922692
26932693
:param run_id: (required)
26942694
:type run_id: UUID
@@ -2756,7 +2756,7 @@ def stop_workflow_run_without_preload_content(
27562756
) -> RESTResponseType:
27572757
"""Stop Workflow Run Handler
27582758
2759-
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 not yet started) 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).
27602760
27612761
:param run_id: (required)
27622762
:type run_id: UUID

‎ksapi/api_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
self.default_headers[header_name] = header_value
9292
self.cookie = cookie
9393
# Set default User-Agent.
94-
self.user_agent = 'OpenAPI-Generator/1.131.0/python'
94+
self.user_agent = 'OpenAPI-Generator/1.131.1/python'
9595
self.client_side_validation = configuration.client_side_validation
9696

9797
def __enter__(self):

‎ksapi/configuration.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def to_debug_report(self) -> str:
562562
"OS: {env}\n"\
563563
"Python Version: {pyversion}\n"\
564564
"Version of the API: 0.1.0\n"\
565-
"SDK Package Version: 1.131.0".\
565+
"SDK Package Version: 1.131.1".\
566566
format(env=sys.platform, pyversion=sys.version)
567567

568568
def get_host_settings(self) -> List[HostSetting]:

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ksapi"
3-
version = "1.131.0"
3+
version = "1.131.1"
44
description = "Knowledge Stack API"
55
authors = [
66
{name = "OpenAPI Generator Community",email = "team@openapitools.org"},

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# prerequisite: setuptools
2020
# http://pypi.python.org/pypi/setuptools
2121
NAME = "ksapi"
22-
VERSION = "1.131.0"
22+
VERSION = "1.131.1"
2323
PYTHON_REQUIRES = ">= 3.9"
2424
REQUIRES = [
2525
"urllib3 >= 2.1.0, < 3.0.0",

0 commit comments

Comments
 (0)