Notifications

Send a webhook notification after an execution completes. Useful for alerting on failures, posting to Slack, or triggering downstream workflows.

Configuration

[hooks.notification]
url = "https://hooks.slack.com/services/T00/B00/xxx"
on = ["failure", "timeout"]

Outcome filters

ValueTriggers when
successExit code 0
failureNon-zero exit code
timeoutExecution exceeded timeout

Default: ["failure", "timeout"]

Custom headers and body

[hooks.notification]
url = "https://hooks.slack.com/services/..."
method = "POST"
on = ["failure", "timeout"]

[hooks.notification.headers]
Content-Type = "application/json"

[hooks.notification]
body = '{"text": ":warning: {{hook_name}} {{status}} (exit {{exit_code}}, {{duration}})"}'

Available template variables

VariableDescription
hook_nameHook display name
hook_slugHook URL slug
statusExecution outcome
exit_codeProcess exit code
execution_idUnique execution ID
durationExecution wall time
trigger_sourceIP address of the caller

Reliability

Notifications are best-effort. A notification failure does not affect the execution record or retry logic.