WorkflowRunNotFound should be a SkyvernHTTPException error (#1528)

This commit is contained in:
Shuchang Zheng
2025-01-09 11:26:30 -08:00
committed by GitHub
parent 5ca2c45be1
commit dde2d650ff

View File

@@ -140,9 +140,9 @@ class WorkflowNotFound(SkyvernHTTPException):
)
class WorkflowRunNotFound(SkyvernException):
class WorkflowRunNotFound(SkyvernHTTPException):
def __init__(self, workflow_run_id: str) -> None:
super().__init__(f"WorkflowRun {workflow_run_id} not found")
super().__init__(f"WorkflowRun {workflow_run_id} not found", status_code=status.HTTP_404_NOT_FOUND)
class MissingValueForParameter(SkyvernHTTPException):