Alex Fetterman
01/09/2024, 5:14 PMelementary package and one bespoke one written for my team that lives in dbt_project.yml
We have a post-hook to clean up temp schemas created on CI builds, but that's running before the post-hooks in the elementary package. In the CI job, elementary is looking for temporary schemas that no longer exist because our first post-hook dropped them.
I see two possible solutions:
• Running the schema dropping hook last. Only thing is I'm not sure how to do that since the hook definitions live in different dbt_project.yml files. I was looking through the post-hook docs on dbt and it looks like there is a set order in which they get run.
• Would an alternate solution be to modify the elementary post-hook to NOT run when target.name == 'ci' . Is there a way to do that, and would that mess elementary up?
Is it possible to skip elementary on CI builds?Or Avidov
01/09/2024, 5:25 PMelementary:
enabled: "{{ target.name != 'ci'}}"Alex Fetterman
01/09/2024, 6:15 PM