send webhook when task or workflow run is canceled (#1374)

This commit is contained in:
Shuchang Zheng
2024-12-14 09:59:37 -08:00
committed by GitHub
parent e61f6632c3
commit 007cf86031
3 changed files with 33 additions and 12 deletions

View File

@@ -285,7 +285,7 @@ class ForgeAgent:
task=task,
last_step=step,
api_key=api_key,
need_call_webhook=False,
need_call_webhook=True,
)
return step, None, None
@@ -1543,7 +1543,7 @@ class ForgeAgent:
async def execute_task_webhook(
self,
task: Task,
last_step: Step,
last_step: Step | None,
api_key: str | None,
) -> None:
if not api_key: