Skip to content

Commit

Permalink
add partition_time_window to DI context
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Jan 30, 2024
1 parent 9b96323 commit 2a69ae3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,10 @@ def asset_partitions_time_window_for_output(self, output_name: str = "result") -
Union[MultiPartitionsDefinition, TimeWindowPartitionsDefinition], partitions_def
).time_window_for_partition_key(self.partition_key)

@property
def partition_time_window(self) -> TimeWindow:
return self.asset_partitions_time_window_for_output()

def add_output_metadata(
self,
metadata: Mapping[str, Any],
Expand Down

0 comments on commit 2a69ae3

Please sign in to comment.