Chore: Converts all call sites and test asserts to use apply_async and headers (#12591)

This commit is contained in:
Trenton H
2026-04-20 11:40:04 -07:00
committed by GitHub
parent 733d873e34
commit fbf4e32646
24 changed files with 465 additions and 425 deletions
+8 -6
View File
@@ -253,12 +253,14 @@ def execute_webhook_action(
document.mime_type,
),
}
send_webhook.delay(
url=action.webhook.url,
data=data,
headers=headers,
files=files,
as_json=action.webhook.as_json,
send_webhook.apply_async(
kwargs={
"url": action.webhook.url,
"data": data,
"headers": headers,
"files": files,
"as_json": action.webhook.as_json,
},
)
logger.debug(
f"Webhook to {action.webhook.url} queued",