Configure task email and Slack notifications
- Status: When a task starts, completes, fails, is stopped, or is suspended. Task creators configure these in the Create Task or Update Task dialogs for Triggered, Scheduled, and Ultra tasks.
- Duration: When a Triggered or Scheduled task exceeds a specified threshold or percentage of its average duration. Environment admins configure these in the Notification center.
Status notifications
Configure status notifications for Triggered, Scheduled, and Ultra tasks from the Create Task or Update Task dialogs:
- In the Notifications field, enter email addresses, separated by commas.
- In environments with Slack notifications enabled:
- Direct Message(s). Select Slack recipients from the dropdown list.
- Channels. Select Slack channels as recipients from the dropdown list.
- Select one or more status events from the When Task has selector:
- Started: The Task starts.
- Completed: The Task completes.
- Failed: The associated pipeline didn't execute.
- Stopped: The associated pipeline stops and the Task is no longer running.
- Suspended: A Task for a Resumable pipeline is in a Suspended state.
Duration notifications
Duration notifications apply only to Triggered tasks and Scheduled tasks. Environment admins configure them in the Notification center. In addition to email and Slack, these notifications display on the Notification center Activity tab.
Duration notifications include:
- Percentage of normal: A threshold percentage of the average duration. The Snaplex calculates the
percentage of normal as follows:
- The average duration and standard deviation: If not computed in the last 3 days, calculate from the last completed 100 executions in the last 30 days.
- The current number of executions must be at least 10.
- Convert the specified percentage threshold into a z-score.
- Convert the z-score into a number of seconds using this formula
threshold_second = duration_avg + duration_sd * z_score
. - When the current duration exceeds the
threshold_second
value, the Snaplex sends a notification (once per execution).
- Time limit: A threshold in minutes that applies to all tasks in the environment or only to infrequent tasks. When task duration exceeds the threshold, the Snaplex sends a notification (once per execution).
To configure a duration notification:
- In Monitor, open the Notification center.
- Click New Notification.
- For Category, select Task.
- Select one of
- Task execution duration - percentage of normal and enter the threshold percentage.
- Task execution duration - time limit, select all or only infrequent tasks, and enter the threshold in minutes.
- Select the Delivery methods and enter the recipients.
- Click Save.