Karl Duane
11/06/2023, 1:52 PMon-run-end.0 hook it takes upwards of 20 minutes despite showing only a short duration. Prior to upgrade we were on 0.7.5 and the end run hooks would take less than a minute. Any recommendations?Idan Shavit
11/06/2023, 3:58 PMKarl Duane
11/06/2023, 5:08 PMdisable_dbt_artifacts_auto_upload: trueJenna Jordan
11/06/2023, 6:18 PMIdan Shavit
11/07/2023, 8:54 AMKarl Duane
11/07/2023, 1:13 PMKarl Duane
11/07/2023, 7:37 PMRobert Riley
11/28/2023, 2:31 AMKarl Duane
11/30/2023, 3:22 PMJulia Masche
12/01/2023, 12:34 PMMaayan Salom
12/05/2023, 1:03 PMAlex Mirkin At-Bay
12/31/2023, 7:46 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?Ofek Weiss
01/07/2024, 1:30 PMon-run-end runtime, since elementary uploads all of your dbt artifacts (models, sources, snapshots, etc), regardless of your selector.
you can try disabling this behavior using disable_dbt_artifacts_auto_upload: true variable, and only enabling it for bigger jobsAlex Mirkin At-Bay
01/07/2024, 1:47 PMOfek Weiss
01/07/2024, 3:15 PMdbt.log with me? DM is good if you prefer