Hi all, I am trying to disable metadata upload by ...
# community-support
k
Hi all, I am trying to disable metadata upload by setting
disable_dbt_artifacts_autoupload
to true. However, when I execute
dbt-run
, my terminal still shows the update of resources, like`81 of 189 OK created sql incremental model dbt_elementary.dbt_seeds ............ [INSERT 0 0 in 1.48s]` . May I know if I miss any step ? thank you!
✅ 1
e
Hi Kevin, uploading the artifacts occurs at the end of your dbt invocation as part of the
on-run-end
hook. Please note that it's unrelated to the models being ran as in the logs you showed. If you'd like to exclude Elementary's models from your dbt pipeline, you can do so like this:
Copy code
dbt run --exclude elementary
k
Hi, thank you for the reply! However, I don’t want to exclude all models in elementary. Id like to keep the result of dbt test and dbt run upload. I want to exclude artifact only. Is there any way ?
e
Your results will be uploaded regardless because running the models and uploading the results are two different things. Running Elementary's tables creates its tables and the on-run-end hook is in charge of populating them. Therefore, you can just not run Elementary's tables and the results will still be uploaded. Is that clear? Would love to elaborate if not.
k
Yeah, I got it. Thank you! I just tried your command. There was no new data in the table
dbt_models
, and run results were still uploaded.