-
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-475] Fail-fast writes no run_results.json on error #3600
Comments
It would be desirable to write Where we write those artifacts them currently, within the dbt-core/core/dbt/task/runnable.py Lines 466 to 468 in 3a3bedc
That dbt-core/core/dbt/task/runnable.py Lines 383 to 391 in 3a3bedc
Is there a way we can replumb this to write partially complete results? I think the right next step might be to spike the difficulty of that replumbing. |
In BLG we all agreed. See: #5204 |
No estimate 5/2 /22 BLG, awaiting spike |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest; add a comment to notify the maintainers. |
Having errors included in the run_results.json when there's a fail fast would be super helpful for my team as we are using fail fast in our CI setup - Is there any chance of this being implemented? Thanks. |
Discussing with @ChenyuLInx, an answer that doesn't feel so terrible: write |
Closing in favor of #7302 Update: Reopening per #7302 (comment) |
Closed per #7302 (comment) |
dbt run --fail-fast
does not writerun_results.json
if it encounters any error, for any model node, during its run.I know
--fail-fast
is common in some development + CI setups. Metadata in those environments is lower-stakes than metadata from prod, but I believe it still has value.We need to decide on and document the expected behavior. Perhaps it's right to consider
--fail-fast
like a keyboard interrupt mid-run, such that the invocation exits without completing.This will also be less pressing in a future where we've instrumented dbt with a streaming event system, because a single JSON file at the end of a batch process will no longer be our only principal source of metadata.
The text was updated successfully, but these errors were encountered: