https://dagster.io/ logo
#dagster-support
Title
# dagster-support
s

Stephen Bailey

06/02/2022, 2:20 PM
What is the recommended way of running an op whether or not an upstream task fails? Use case here is having a
run_dbt_cloud_tests
step and then a second op that does a
parse_dbt_cloud_run_results
process. Right now, the DAG exits if any of the tests fail. Ideally this second node would get a dbt cloud run id from the first op, no matter what happens in the execution step.
d

dwall

06/02/2022, 2:23 PM
we sometimes use run status sensors for this kind of thing
👍 1
a

alex

06/02/2022, 2:32 PM
would it make sense to change the
op
so that instead of failing when the tests fail, it only fails on unexpected error and otherwise always returns a
TestResults
type of output?
1
s

Stephen Bailey

06/02/2022, 2:47 PM
Yeah, that might be what I need to do here. If I want to keep the overall DAG failure state, I'll probably have to raise the failure in the downstream op.
a

alex

06/02/2022, 3:04 PM
ya that or a separate
assert_tests_passed
op
2 Views