optimize svg cache and add retry (#752)

This commit is contained in:
LawyZheng
2024-08-29 11:11:32 +08:00
committed by GitHub
parent 3dfef04b1e
commit f1152022a0
2 changed files with 34 additions and 17 deletions

View File

@@ -293,6 +293,11 @@ class StepUnableToExecuteError(SkyvernException):
super().__init__(f"Step {step_id} cannot be executed and task execution is stopped. Reason: {reason}")
class SVGConversionFailed(SkyvernException):
def __init__(self, svg_html: str) -> None:
super().__init__(f"Failed to convert SVG after max retries. svg_html={svg_html}")
class UnsupportedActionType(SkyvernException):
def __init__(self, action_type: str):
super().__init__(f"Unsupport action type: {action_type}")