Andres05/12/2022, 12:43 PM
. The issue I have is that I have a handler which sends notifications with details on the failing flows but when dbt task fails with return code 1, all i get is
is there a way to capture in a variable the logs of a failed shell task to then process them and display them using the handler?
'Command failed with exit code 1'
alex05/12/2022, 12:45 PM
, I believe that you can use the
option to log the output of the command that you’re running. Here’s a link to the
docs for more info: https://docs.prefect.io/api/latest/tasks/shell.html#shelltask.
Andres05/12/2022, 1:29 PM