Backend: unified /runs URL (#3898)

This commit is contained in:
Jonathan Dobson
2025-11-04 18:30:17 -05:00
committed by GitHub
parent 324c3f921d
commit 8288c973bd
10 changed files with 113 additions and 22 deletions

View File

@@ -168,6 +168,17 @@ class WorkflowNotFound(SkyvernHTTPException):
)
class WorkflowNotFoundForWorkflowRun(SkyvernHTTPException):
def __init__(
self,
workflow_run_id: str | None = None,
) -> None:
super().__init__(
f"Workflow not found for workflow run {workflow_run_id}",
status_code=status.HTTP_404_NOT_FOUND,
)
class WorkflowRunNotFound(SkyvernHTTPException):
def __init__(self, workflow_run_id: str) -> None:
super().__init__(f"WorkflowRun {workflow_run_id} not found", status_code=status.HTTP_404_NOT_FOUND)