Skip to content

Commit

Permalink
add time window to DI contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Jan 26, 2024
1 parent 90ba9e6 commit f87462e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,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 f87462e

Please sign in to comment.