Hi All How can I run dbt deps command in dagster
# ask-community
s
Hi All How can I run dbt deps command in dagster
j
hi @shailesh you can use the dbt cli resource to make a
deps
call
Copy code
@op(required_resource_keys={"dbt_cli"})
def dbt_deps_op(context):
    context.resources.dbt_cli.cli("deps")
for more info you can reference this slack thread https://dagster.slack.com/archives/C01U954MEER/p1660240572201999
s
Thank you @jamie . I will try this!
One more question I want to add validation check between • My meltano EL and • Transformation DBT
If my validation will success full then by DBT part will be triggered
j
i think in that case you could have an op for the meltano EL that does the validation and make the dbt op depend on the meltano op. if the validation fails, you can return None and then the dbt op won't execute. it would be sort of like this example https://docs.dagster.io/concepts/ops-jobs-graphs/graphs#with-conditional-branching