we just enabled elementary on our dbt project (its...
# community-support
g
we just enabled elementary on our dbt project (its large project containing APPROX 10K models) and on run end hooks are running longer than actual dbt model - have tried adding vars as suggested but its still taking lot of time to upload artifacts.. how can we reduce that time
Copy code
vars:
      disable_dbt_artifacts_autoupload: true
      disable_dbt_invocation_autoupload: true
      disable_run_results: true
      disable_tests_results: true
👍 1
#C02CTC89LAX - anyone else faced this issue
s
Probably a copy/paste error, but
vars:
should be properly left aligned. We do this too and haven't had any issues.
g
its copy paste error @Sindre Grindheim but i tried and as i mentioned earlie we have large 10K models and sources.. its not working for us. can you share your dbt_project.yaml file and share how many sources/models you have
s
Sure thing. Our
vars
section in
dbt_project.yml
looks like below - we disable uploading results for developers (as identified by the target name), and only upload dbt artifacts during deploy (which is identified by the proxy full-refresh flag). Currently we have 2456 models and 2387 sources.
Copy code
vars:
    # Disable Elementary hooks for development
    disable_run_results: "{{ 'release' not in target.name }}"
    disable_tests_results: "{{ 'release' not in target.name }}"
    disable_dbt_artifacts_autoupload: "{{ 'release' not in target.name or not flags.FULL_REFRESH }}"
    disable_dbt_invocation_autoupload: "{{ 'release' not in target.name }}"
👍 1