fix(openapi): stop runs by run id and publish each op's effect (#44587)

This commit is contained in:
Xiyuan Chen authored and GitHub committed 2026-10-28 02:46:42 +00:00
1 parent 24e4037144
commit c01cb5d119
36 files changed
+598 -300

No files matched your search

+9
View File
@@ -81,6 +81,7 @@ class OpenApiErrorCode(StrEnum):
CATALOG_STALE = "catalog_stale"
TRIGGER_WORKFLOW_SERVICE_MODE_UNAVAILABLE = "trigger_workflow_service_mode_unavailable"
RUN_NOT_FOUND = "run_not_found"
RUN_NOT_STOPPABLE = "run_not_stoppable"
VERSION_NOT_FOUND = "version_not_found"
VERSION_NOT_RESTORABLE = "version_not_restorable"
DRAFT_NOT_FOUND = "draft_not_found"
@@ -367,6 +368,14 @@ class RunNotFound(OpenApiError): # noqa: N818
description = "No run with this id exists for this app."
class RunNotStoppable(OpenApiError): # noqa: N818
code = 409
error_code = OpenApiErrorCode.RUN_NOT_STOPPABLE
description = (
"This run has already finished, or it started before runs recorded a stop id; stop it from the console."
)
class VersionNotFound(OpenApiError): # noqa: N818
code = 404
error_code = OpenApiErrorCode.VERSION_NOT_FOUND