Hello, We are working heavily on Dagster to orches...
# ask-community
a
Hello, We are working heavily on Dagster to orchestrate DBT models, and we are looking to: • Have more information/metadata about the status of each DBT model execution • Can we dynamically pass DBT configurations to each dbt model execution? Any ideas please?
o
hi @Ahmed IBRAHEM! Can you say more about the type of metadata you want about the model status? And for dynamically passing dbt configuration to each model execution, would these just be cli flags? We have an example that uses runtime values to modify flags to the dbt execution here: https://docs.dagster.io/integrations/dbt#-supplying-an-argument
a
Thanks for the guides, Looking to: • have more information about the DBT run like status • Change resource configuration dynamically
o
hi again Ahmed -- you can't change the configuration of a resource once a run has started, but basically any value you set in that configuration can be overridden at runtime by passing an argument into a function invoked on the resource. For example, you can do something like
context.resources.dbt.run(project_dir="some/project/dir")
(or modify any other flag). The status of the dbt run should be automatically bubbled up to dagster, as far as I know (as in, if the dbt run fails, then the dagster step will fail, unless you set a particular flag).