Webhook Replay Test URL (#3769)

Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
Marc Kelechava
2025-10-22 14:26:14 -07:00
committed by GitHub
parent e8472df6d1
commit aeefc301ed
8 changed files with 964 additions and 12 deletions

View File

@@ -49,6 +49,26 @@ class ProxyLocationNotSupportedError(SkyvernException):
super().__init__(f"Unknown proxy location: {proxy_location}")
class WebhookReplayError(SkyvernHTTPException):
def __init__(
self,
message: str | None = None,
*,
status_code: int = status.HTTP_400_BAD_REQUEST,
):
super().__init__(message=message or "Webhook replay failed.", status_code=status_code)
class MissingWebhookTarget(WebhookReplayError):
def __init__(self, message: str | None = None):
super().__init__(message or "No webhook URL configured for the run.")
class MissingApiKey(WebhookReplayError):
def __init__(self, message: str | None = None):
super().__init__(message or "Organization does not have a valid API key configured.")
class TaskNotFound(SkyvernHTTPException):
def __init__(self, task_id: str | None = None):
super().__init__(f"Task {task_id} not found", status_code=status.HTTP_404_NOT_FOUND)