-
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
Always write run_results.json
#7539
Always write run_results.json
#7539
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
core/dbt/task/runnable.py
Outdated
self.previous_state: Optional[PreviousState] = None | ||
self.run_count: int = 0 | ||
self.started: float = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.started
is the only new value here. The rest of the changes are just sorting things for readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few comments. I don't have any better suggestions on the testing strategies though, apologies. It may be a good idea to get a review from someone on language as well since results/writing is technically their domain, I think. Feel free to re-request a review when my comments have been resolved!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments addressed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
resolves #7302
resolves #7448
Description
In an effort to ensure
run_results.json
is always available regardless of whether or not the run was interrupted or terminated we now write them as each node finishes and once more at the end of the run.Checklist
changie new
to create a changelog entry