Make text prompt executions a step in workflow runs (#1590)

This commit is contained in:
Shuchang Zheng 2025-01-17 09:17:31 -08:00 committed by GitHub
parent bb834fa137
commit e4cb0987cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 25 additions and 1 deletions

View file

@ -311,6 +311,13 @@ class StepTerminationError(SkyvernException):
super().__init__(f"Step {step_id} cannot be executed and task is failed. Reason: {reason}")
class BlockTerminationError(SkyvernException):
def __init__(self, workflow_run_block_id: str, workflow_run_id: str, reason: str) -> None:
super().__init__(
f"Block {workflow_run_block_id} cannot be executed and workflow run {workflow_run_id} is failed. Reason: {reason}"
)
class StepUnableToExecuteError(SkyvernException):
def __init__(self, step_id: str, reason: str) -> None:
super().__init__(f"Step {step_id} cannot be executed and task execution is stopped. Reason: {reason}")