Dear community, Elementary post-run hook takes 3-5...
# community-support
d
Dear community, Elementary post-run hook takes 3-5 minutes to complete in our project (we have 1000+ nodes in DBT graph). So we disabled Elementary DBT package for local development. It looks that most of the Elementary tests do need Elementary artifacts. Namely
schema_changes_from_baseline
test is skipped. Is it possible to disable some Elementary functionality (like source freshness anomality) but still have
schema_changes_from_baseline
working?
✅ 1
i
Hi @Denis Kokorin, yes if you completely disable the elementary package then it will also cause elementary tests from it to skip. However, you can instead disable the on-run-end hook functionality locally with this:
Copy code
vars:
    disable_dbt_artifacts_autoupload: true
    disable_dbt_invocation_autoupload: true
    disable_run_results: true
    disable_tests_results: true
(or instead of
true
use a jinja expression such as
"{{ target.name != 'prod' }}"
) It should save time but still allow you to use the tests. Note though that adding all these flags will also prevent
edr report
from functioning correctly locally as it relies on the Elementary artifacts. If you do wish to see the results there, you can try to remove just
disable_tests_results
from the list above (you'll still need to run the elementary models at least once though).
d
Thank you! I didn't realize there are flags for that