-
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
Enable retry
support for Microbatch models
#10751
Merged
Merged
Changes from 29 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
39b5cd5
Add `PartialSuccess` status type and use it for microbatch models wit…
QMalcolm 35963b4
Handle `PartialSuccess` in `interpret_run_result`
QMalcolm 3d606fa
Add `BatchResults` object to `BaseResult` and begin tracking during m…
QMalcolm 839173a
Ensure batch_results being propagated to `run_results` artifact
QMalcolm 3b98e49
Move `batch_results` from `BaseResult` class to `RunResult` class
QMalcolm a461ae1
Move `BatchResults` and `BatchType` to separate arifacts file to avoi…
QMalcolm 0e6f0a8
Add `PartialSuccess` as a retry-able status, and use batches to retry…
QMalcolm 0389475
Merge branch 'main' into qmalcolm--microbatch-retry
QMalcolm d8bfa51
Fix BatchType type so that the first datetime is no longer Optional
QMalcolm a6ab35d
Ensure `PartialSuccess` causes skipping of downstream nodes
QMalcolm 8d7ab70
Alter `PartialSuccess` status to be considered an error in `interpret…
QMalcolm 93deb32
Update schemas and test artifacts to include new batch_results run re…
QMalcolm cc0ce6a
Add functional test to check that 'dbt retry' retries 'PartialSuccess…
QMalcolm 43cf129
Update partition failure test to assert downstream models are skipped
QMalcolm 708c4d4
Merge branch 'main' into qmalcolm--microbatch-retry
QMalcolm fb6b509
Improve `success`/`error`/`partial success` messaging for microbatch …
QMalcolm 03c46f6
Include `PartialSuccess` in status that `--fail-fast` counts as a fai…
QMalcolm 287bd55
Update `LogModelResult` to handle partial successes
QMalcolm 0643124
Update `EndOfRunSummary` to handle partial successes
QMalcolm 4004347
Cleanup TODO comment
QMalcolm fb113e3
Raise a DbtInternalError if we get a batch run result without `batch_…
QMalcolm 14e8d53
When running a microbatch model with supplied batches, force non full…
QMalcolm a6a1ef8
Only pass batches to retry for microbatch model when there was a Part…
QMalcolm 61108ee
Merge branch 'main' into qmalcolm--microbatch-retry
QMalcolm ee41265
Fix test_manifest unit tests to know about model 'batches' key
QMalcolm b3552f7
Add some console output assertions to microbatch functional tests
QMalcolm 8cc95d4
add batch_results: None to expected_run_results
MichelleArk ee338d0
Add changie doc for microbatch retry functionality
QMalcolm d1e6a94
maintain protoc version 5.26.1
MichelleArk 4980627
Cleanup extraneous comment in LogModelResult
QMalcolm 415f695
Merge branch 'main' into qmalcolm--microbatch-retry
QMalcolm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Features | ||
body: Enable `retry` support for microbatch models | ||
time: 2024-09-25T16:50:02.105069-05:00 | ||
custom: | ||
Author: QMalcolm MichelleArk | ||
Issue: "10624" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from __future__ import annotations | ||
|
||
from dataclasses import dataclass, field | ||
from datetime import datetime | ||
from typing import List, Tuple | ||
|
||
from dbt_common.dataclass_schema import dbtClassMixin | ||
|
||
BatchType = Tuple[datetime, datetime] | ||
|
||
|
||
@dataclass | ||
class BatchResults(dbtClassMixin): | ||
successful: List[BatchType] = field(default_factory=list) | ||
failed: List[BatchType] = field(default_factory=list) | ||
|
||
def __add__(self, other: BatchResults) -> BatchResults: | ||
return BatchResults( | ||
successful=self.successful + other.successful, | ||
failed=self.failed + other.failed, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
is this comment still relevant?
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.
It is not, I'll get it fixed