-
Hi everyone! Is there an option to configure a The question was originally asked in Dagster Slack. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Surfacing an answer from Slack: In code I've passed my_graph.py from dagster_dbt import dbt_cli_resource
@op(required_resource_keys={"my_dbt_resource"})
def dbt_run(context):
context.resources.my_dbt_resource.run()
@graph
def my_graph():
dbt_run()
my_job = my_graph.to_job(
resource_defs={
'my_dbt_resource': dbt_cli_resource
}
) config yml: resources:
my_dbt_resource:
config:
project_dir: "my/project/dir"
dbt_executable: "my/dbt/executable" |
Beta Was this translation helpful? Give feedback.
Surfacing an answer from Slack:
In code I've passed
dbt_cli_recource
fromdagster_dbt
directly intoresource_defs
into_job
graph method.my_graph.py
config yml: