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 31, 2024
1 parent b2de1c4 commit 0fc1636
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 0fc1636

Please sign in to comment.