Andres
05/12/2022, 12:43 PMdbtShellTask
. 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 'Command failed with exit code 1'
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?alex
05/12/2022, 12:45 PMDbtShellTask
subclasses ShellTask
, I believe that you can use the steam_output
option to log the output of the command that you’re running. Here’s a link to the ShellTask
docs for more info: https://docs.prefect.io/api/latest/tasks/shell.html#shelltask.Anna Geller
log_stderr=True
Andres
05/12/2022, 1:29 PM