support global workflow (#1664)

This commit is contained in:
Shuchang Zheng 2025-01-28 15:04:18 +08:00 committed by GitHub
parent 833cd8194e
commit 1b79ef9ca3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 154 additions and 26 deletions

View file

@ -124,3 +124,11 @@ class FailedToFormatJinjaStyleParameter(SkyvernException):
class NoIterableValueFound(SkyvernException):
def __init__(self) -> None:
super().__init__("No iterable value found for the loop block")
class InvalidTemplateWorkflowPermanentId(SkyvernHTTPException):
def __init__(self, workflow_permanent_id: str) -> None:
super().__init__(
message=f"Invalid template workflow permanent id: {workflow_permanent_id}. Please make sure the workflow is a valid template.",
status_code=status.HTTP_400_BAD_REQUEST,
)