Send email notifications to one or more addresses.
Slack
Post messages to a Slack channel via email-to-Slack integration.
PagerDuty
Trigger PagerDuty incidents via its email integration.
Notification phases
Notifications can be triggered on any combination of the following workflow execution phases:| Phase | Constant | Description |
|---|---|---|
SUCCEEDED | WorkflowExecutionPhase.SUCCEEDED | Workflow completed successfully |
FAILED | WorkflowExecutionPhase.FAILED | Workflow terminated with a failure |
TIMED_OUT | WorkflowExecutionPhase.TIMED_OUT | Workflow exceeded its timeout |
ABORTED | WorkflowExecutionPhase.ABORTED | Workflow was manually aborted |
Configuring notifications on a launch plan
Add notifications to a launch plan using thenotifications parameter. Each notification specifies the phases it fires on and the recipients.
Email notifications
Slack notifications
Flyte sends Slack notifications via Slack’s email-to-channel feature. Configure an email address for your Slack channel and use it as the recipient.PagerDuty notifications
Flyte sends PagerDuty notifications via PagerDuty’s email integration. Use the service’s integration email address as the recipient.Combining multiple notification channels
A single launch plan can include multiple notification objects, each targeting different channels and phases:Admin-level notification configuration
Notifications require a message queue backend to be configured in the Flyte admin deployment. This is a one-time setup performed by your platform administrator. For configuration steps, see the notifications deployment guide.If you are using a managed Flyte deployment, contact your administrator to confirm that notifications are enabled and which backends are supported.
Notifications vs. alerts
When should I use notifications vs. external monitoring?
When should I use notifications vs. external monitoring?
Use Flyte notifications for lightweight, per-execution alerts where you want recipients to know a specific workflow completed or failed. For aggregated metrics, dashboards, or SLO-based alerting, integrate your monitoring stack (Datadog, Prometheus, Grafana) with the Flyte metrics endpoint instead.
Can I use notifications with scheduled launch plans?
Can I use notifications with scheduled launch plans?
Yes. Notifications and schedules are both properties of a launch plan and can be combined. For example, you can schedule a nightly workflow and send an email when it succeeds or fails.
Are notifications sent for sub-workflow executions?
Are notifications sent for sub-workflow executions?
Notifications are evaluated on the top-level workflow execution. Sub-workflow and task-level events do not independently trigger launch plan notifications.