add webhook support for observer (#1546)

This commit is contained in:
Shuchang Zheng
2025-01-14 08:59:53 -08:00
committed by GitHub
parent 950a4a54f3
commit 0392763998
8 changed files with 160 additions and 13 deletions

View File

@@ -29,11 +29,13 @@ class FailedToSendWebhook(SkyvernException):
task_id: str | None = None,
workflow_run_id: str | None = None,
workflow_id: str | None = None,
observer_cruise_id: str | None = None,
):
workflow_run_str = f"workflow_run_id={workflow_run_id}" if workflow_run_id else ""
workflow_str = f"workflow_id={workflow_id}" if workflow_id else ""
task_str = f"task_id={task_id}" if task_id else ""
super().__init__(f"Failed to send webhook. {workflow_run_str} {workflow_str} {task_str}")
observer_cruise_str = f"observer_cruise_id={observer_cruise_id}" if observer_cruise_id else ""
super().__init__(f"Failed to send webhook. {workflow_run_str} {workflow_str} {task_str} {observer_cruise_str}")
class ProxyLocationNotSupportedError(SkyvernException):