fail task right away when scraping failed - no need to retry scraping failure at step level (#1997)

This commit is contained in:
Shuchang Zheng
2025-03-21 15:47:36 -07:00
committed by GitHub
parent ad2a915dc1
commit 4f9af0d797
5 changed files with 39 additions and 9 deletions

View File

@@ -250,6 +250,11 @@ class EmptyScrapePage(SkyvernException):
super().__init__("Failed to scrape the page, returned an NONE result")
class ScrapingFailed(SkyvernException):
def __init__(self) -> None:
super().__init__("Scraping failed.")
class WorkflowRunContextNotInitialized(SkyvernException):
def __init__(self, workflow_run_id: str) -> None:
super().__init__(f"WorkflowRunContext not initialized for workflow run {workflow_run_id}")