appears to be working
This commit is contained in:
@@ -57,11 +57,16 @@ def gen_ie_query(from_date: datetime.date, to_date: datetime.date):
|
||||
'gridView24HourIE_length': '10',
|
||||
}
|
||||
|
||||
NY_DAILY_PARTITION = dg.DailyPartitionsDefinition(
|
||||
start_date="2025-01-01",
|
||||
timezone="America/New_York",
|
||||
)
|
||||
|
||||
@dg.asset(
|
||||
group_name="nyboe",
|
||||
compute_kind="NYBOE API",
|
||||
partitions_def=dg.DailyPartitionsDefinition(start_date="2025-05-10"),
|
||||
)
|
||||
group_name="nyboe",
|
||||
compute_kind="NYBOE API",
|
||||
partitions_def=NY_DAILY_PARTITION,
|
||||
)
|
||||
def fetch_expenditures(context: dg.AssetExecutionContext) -> dg.MaterializeResult:
|
||||
"""Fetch the day before the partition date"""
|
||||
end_date = pendulum.parse(context.partition_key).subtract(days=1)
|
||||
|
||||
Reference in New Issue
Block a user