Ramon Vermeulen
03/27/2024, 9:14 AMvars:
disable_dbt_artifacts_autoupload: true
However the on-run-end hook is still executed and uploading dbt artifacts.
Ideally I want to be able to fully disable or enable elementary models + on-run-end hooks via one environment variable.Arthur Gusmão
03/28/2024, 2:06 AMvars:
disable_run_results: true
disable_tests_results: true
disable_dbt_artifacts_autoupload: true
disable_dbt_invocation_autoupload: trueRamon Vermeulen
03/28/2024, 7:57 AMdisable_dbt_artifacts_autoupload to disable the whole thing, because in the end it is all dbt artifacts (e.g. run_results.json, manifest.json, etc.) that elementary parses and uploads (as incremental models) to the elementary tables right?Arthur Gusmão
03/28/2024, 1:35 PMMetadata and Results models. The metadata models store the project's settings and resources: dbt_models, dbt_tests, dbt_sources. The results models store the logs of the results of the runs/tests (dbt_run_results, elementary_test_results). And these variables individually disable each type of model. Example, using this alone will disable only the metadata models:
vars:
disable_dbt_artifacts_autoupload: true
Using this will only disable the result models:
vars:
disable_dbt_invocation_autoupload: true
And you can individually disable results and tests if you need to:
vars:
disable_run_results: true
disable_tests_results: true
Source: https://docs.elementary-data.com/dbt/on-run-end_hooks#can-i-disable-the-Daniel Pollak
04/01/2024, 3:17 PMRamon Vermeulen
04/02/2024, 6:44 AMRamon Vermeulen
04/02/2024, 11:09 AMvars:
disable_dbt_artifacts_autoupload: "{{ env_var('DBT_DISABLE_ELEMENTARY', false) | as_bool }}"
disable_dbt_invocation_autoupload: "{{ env_var('DBT_DISABLE_ELEMENTARY', false) | as_bool }}"
and setting the DBT_DISABLE_ELEMENTARY as export DBT_DISABLE_ELEMENTARY=true
However the on-run-end hook still ingests the artifact data after every run, I am still on elementary version 0.13.0 (if this is known behaviour for that version?)Jeff Asselin
08/13/2024, 9:43 PM0.17.0 and dbt version 1.7.
With the below vars in my root project dbt_project.yml file the elementary.on-run-start and elementary.on-run-end hooks are still running when I run dbt
vars:
disable_run_results: true
disable_tests_results: true
disable_dbt_artifacts_autoupload: true
disable_dbt_invocation_autoupload: true