Hello ! I'm trying to run `dbt test` using `DbtCor...
# prefect-dbt
a
Hello ! I'm trying to run
dbt test
using
DbtCoreOperation
but it may fail and I don't want to make the flow fail (because I want to gather the result and make my own Slack message with what as failed). Is there any way to do that?
t
@Adrien Besnard that's a hard hitting question we had to deal with. ultimately what we did was change the command we passed to the dbtcoreoperation to be something like
Copy code
dbt test || echo
the
||
ensure the second command only gets run if the first one fails. and echo should always succeed and return a status code of 0 for the whole group, which should pass the dbt core operation. if you know a better way I'd love to learn about it