-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-985] [Feature] on-run-end hook and results variable support for source freshness command #5609
Comments
@lostmygithubaccount is something I can contribute to? |
@jtalmi apologies I missed that comment! I've been messing around with how I check my GitHub notifications and I think it fell through the cracks. We would welcome contribution on this issue and can likely provide some guidance if needed. @oravi thank you for opening. |
The Lines 318 to 393 in a3b018f
Lines 418 to 439 in a3b018f
The reason |
Thanks @jtcohen6 ! could you please share a bit more context about GraphRunnableTask and RunTask? What's the unique purpose of each one of them? Specifically curious to learn why Also in case we will go with the suggested approach - as you mentioned I saw that Thanks for all your help here! |
Hi @jtcohen6 @lostmygithubaccount, |
hi @elongl, Jeremy or one of the engineers should be able to answer for sure -- I think so, though there are some ongoing internal API refactors for v1.5 that could affect this |
@oravi @elongl Sorry for the long delay getting back to you! Our current task logic is implemented with a lot of class inheritance, rather than composition, which makes this logic much trickier to follow than it should be. That is something we'd be hoping to improve as part of our API refactors over the next several months, but we haven't touched this part of the codebase just yet. I think the desirable outcomes here are:
If one of you wanted to open a PR for that, I'd be happy to see it merged!
This is status quo & my opinion — does anyone have a different opinion? |
Hi @jtcohen6 👋
|
Went ahead and opened this PR that implements this suggested solution:
Functionally it seems to work fine. |
Is this your first time submitting a feature request?
Describe the feature
dbt source freshness
does not support running an on-run-end hook.dbt run
,dbt test
,dbt snapshot
and more already support running an on-run-end hook and getting results jinja variable as their context.dbt source freshness
command, we can upload the source freshness results to the data warehouse. This could be used for displaying source freshness results on a dashboard, monitoring, and alerting.Describe alternatives you've considered
dbt source freshness
command already writes the freshness results to a file called sources.json.dbt source freshness
command.Who will this benefit?
Are you interested in contributing this feature?
Yes
Anything else?
No response
The text was updated successfully, but these errors were encountered: