<#C02CTC89LAX|> Hi Team, Elementary default runs o...
# community-support
g
#C02CTC89LAX Hi Team, Elementary default runs on-run-end hook, however our dbt project has on-run-end which should execute after Elementary on-run-end Do we have solution for this ? Thank you
👀 1
e
Hey @Ganesh Gadakar! dbt will run any package on-run-end after the local dbt projects on-run-end. What's the reason you'd prefer to have your dbt projects hook to run after the elementary hook?
g
Hi @Erik Zaadi We have implementation to turn off warehouse after execution which keeps warehouse active for a minute and adds consumption at Snowflake side. Hence anyone doing dev, prod work will stop the warehouse run after dbt execution.. The consumption cost looks small, however with Extra Large, Large and Medium warehouse with 10 developers it saves good daily amount. Eg - 1 min of Extra Large warehouse - 0.5 credits Large warehouse - 0.3 credits Medium warehouse - 0.2 credits Minimum 100 executions daily - 50 - 20 credits daily saved This is an example for saving. Thank you
Hi @Erik Zaadi Following up on same, if anything can be done for same Thank you
Hi @Erik Zaadi Any feedback for above query Adding this in Dev cloud is also not working, it still runs elementary package
Copy code
elementary:
      +enabled: "{{ target.name == 'prod' }}"
Thank you
o
hi @Ganesh Gadakar 👋 sorry for the late response, the example you provided disables the
elementary
models, not the hooks... 😞 you can try to disable the on-run-end command by adding the following configuration to your `dbt_project.yml`:
Copy code
...
vars:
  edr_cli_run: "{{ target.name != 'prod' }}"
let me know if this helps