appears to be working

This commit is contained in:
Alex Fox
2025-05-20 14:50:53 +00:00
parent 1683426275
commit 216a8f7c3b
3 changed files with 20 additions and 132 deletions

View File

@@ -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)