on-run-end hook take a long time to finish
#786
Replies: 3 comments
-
|
Hi @papost ! Thanks for reaching out and sorry to hear that it takes a long time for you to run. Please let me share some context on what happens during the on-run-end hook and then we can think together what might be the issue. on-run-end is responsible for the following -
Another thing to note - some of our users enable this metadata and run results collection only in prod so it doesn't slow down their local work. You can see the following to learn how to configure it - |
Beta Was this translation helpful? Give feedback.
-
|
Hello ! |
Beta Was this translation helpful? Give feedback.
-
|
I have a similar issue, but in my case it's weirder since it seems environment dependent. I am comparing two runs, one local run (MacOS) and one on AWS ECS Fargate (running Linux). Both environment have the exact same version of all packages installed (dbt-core==1.7.19 and elementary-data==0.16.1). The issue arises when flattening/uploading the artifacts, and it's mostly noticeable on the dbt_tests/dbt_columns artifacts. Her's an example for dbt_columns: locally it is pretty fast (37 seconds): whereas on the "cloud" environment it takes ~4:30 minutes: My first guess would be a networking issue, which could explain the slow inserting of data on Redshift, but I can't explain the artifact flattening taking longer. From my understanding, flattening the artifacts is a purely local operation, so I don't understand why it would take an order of magnitude longer to do in our prod environment than on my local machine. If anyone has any insights regarding this, I would love to discuss! EDIT: PROBLEM (mostly) SOLVED 🥳 - increasing the CPU of my task + disabling the upload of the columns artifacts using the |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
I am trying to initialize and use the
elementarypackage (it's awesome), but I am skeptical if we are going to use it. Even If I run a single view model with no transformations & calculations, it takes a long time to finish theon-run-endhook of elementary. Although it is a great tool, this problem will waste a lot of our time while we are developing new models. Am I missing something? Does anyone have the same issue as me? Waiting for your answers!Beta Was this translation helpful? Give feedback.
All reactions