Alex Mirkin At-Bay
01/01/2024, 3:40 PM04:02:20 Running with dbt=1.7.4
04:02:21 Registered adapter: snowflake=1.7.1
04:02:24 Found 768 models, 5 analyses, 25 seeds, 2 operations, 630 tests, 235 sources, 10 exposures, 0 metrics, 1478 macros, 4 groups, 0 semantic models
04:02:24
04:02:27
04:02:27 Running 1 on-run-start hook
04:02:27 1 of 1 START hook: elementary.on-run-start.0 ................................... [RUN]
04:02:27 1 of 1 OK hook: elementary.on-run-start.0 ...................................... [OK in 0.00s]
04:02:27
04:02:27 Concurrency: 16 threads (target='prod')
04:02:27
04:02:27 1 of 1 START sql table model crm.contact ....................................... [RUN]
04:02:33 1 of 1 OK created sql table model crm.contact .................................. [SUCCESS 1 in 6.21s]
04:02:33
04:02:33 Running 1 on-run-end hook
04:03:31 1 of 1 START hook: elementary.on-run-end.0 ..................................... [RUN]
04:03:31 1 of 1 OK hook: elementary.on-run-end.0 ........................................ [OK in 0.00s]
04:03:31
04:03:31
04:03:31 Finished running 1 table model, 2 hooks in 0 hours 1 minutes and 7.45 seconds (67.45s).
04:03:32
04:03:32 Completed successfully
Are there any workarounds to improve on-run-end performance?Ella Katz
01/02/2024, 3:55 PMMatthieu
05/17/2024, 6:14 AMMatthieu
05/17/2024, 6:14 AMAlex Mirkin At-Bay
05/17/2024, 9:38 AMdisable_dbt_artifacts_autoupload: true flag the on-run-end hook finishes much faster - few seconds.
I replaced the true with jinja code that returns false if I'm deploying changes (CD) and true in our CI or scheduled DWH runs.
This way the cache will be used for the unchanged resources and it will be much faster then running than running _`dbt run --select elementary.edr.dbt_artifacts`_ which takes 5 minutes to run.Larissa De Moura
07/12/2024, 9:19 AMdisable_dbt_artifacts_autoupload: true only disable metadata models from being updated? And run_results / test results would still be refreshed?Larissa De Moura
07/12/2024, 9:22 AMdbt run and dbt test.
Would it be possible to do it for run results as well? I use Airflow with a virtualenv for dbt. 🤔Alex Mirkin At-Bay
07/12/2024, 10:03 AMdisable_dbt_artifacts_autoupload: true and still getting the run and test results.