the error raised from the base validate_step_execution shouldn't be handled to fail the task (#422)

This commit is contained in:
Kerem Yilmaz
2024-06-05 13:30:09 -07:00
committed by GitHub
parent 3f3fbbc63d
commit fbe42994a9
3 changed files with 17 additions and 4 deletions

View File

@@ -266,7 +266,12 @@ class UnknownElementTreeFormat(SkyvernException):
class StepTerminationError(SkyvernException):
def __init__(self, step_id: str, reason: str) -> None:
super().__init__(f"Step {step_id} cannot be executed and task is terminated. Reason: {reason}")
super().__init__(f"Step {step_id} cannot be executed and task 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}")
class UnsupportedActionType(SkyvernException):