-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[amp refactor 3/3] Refactor 'discard when backfill in progress' condi…
…tion into skip rule (#17165) Refactors the 'discard when backfill in progress' into a `AutoMaterializeRule.skip_on_backfill_in_progress` skip rule. - Adds a `skip_all_partitions_of_backfilling_asset` argument (default False) to enable skipping all partitions of the backfilling asset, regardless of whether the partitions are targeted by the backfill. If False, only skips the partitions targeted by the backfill. Also modifies the behavior of `AutoMaterializePolicy.with_rules` to override the existing rule if an instance of it already exists, so users don't have to write the following: ```python AutoMaterializePolicy.eager().without_rules( AutoMaterializeRule.skip_on_backfill_in_progress() ).with_rules(AutoMaterializeRule.skip_on_backfill_in_progress(True)) ``` and instead can just use `with_rules` to overwrite the original `skip_on_backfill_in_progress` rule: ```python AutoMaterializePolicy.eager().with_rules(AutoMaterializeRule.skip_on_backfill_in_progress(True)) ```
- Loading branch information
1 parent
caf571a
commit 911d74e
Showing
5 changed files
with
208 additions
and
11 deletions.
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
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