You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"text": "Failure alert for flow `{{ flow.namespace }}.{{ flow.id }}` with ID `{{ execution.id }}`. Here is a bit more context about why the execution failed: `{{ errorLogs()[0]['message'] }}`"
16
+
}
17
+
18
+
extend:
19
+
title: Using errorLogs function to send error message to Slack
20
+
description: >-
21
+
This `fail` task of the workflow will always fail.
22
+
23
+
The error logs are captured using the `errorLogs()` function which is sent
24
+
as a Slack alert message.
25
+
26
+
The `errorLogs()` function retrieves a list of error logs from the failed task run.
27
+
This is useful when sending alerts on failure. When using this function e.g. in a
28
+
Slack alert message, you'll have the context about why the execution failed.
29
+
tags:
30
+
- Error
31
+
- Fail
32
+
ee: false
33
+
demo: false
34
+
meta_description: This workflow uses errorLogs function to retrive list of error logs.
0 commit comments