Yehuda Ornstein
02/01/2023, 3:14 PMschedules=[
ScheduleDefinition(
job=define_asset_job("daily_process", selection=["get_session"]),
cron_schedule="*/5 * * * *"
)
]
Vinnie
02/01/2023, 3:22 PMAssetSelection
class to the selection
argument to include downstream asset(s) by calling its .downstream()
method.
https://github.com/dagster-io/dagster/blob/master/python_modules/dagster/dagster/_core/definitions/asset_selection.py#L17
The following should work:
schedules=[
ScheduleDefinition(
job=define_asset_job("daily_process", selection=AssetSelection.keys(AssetKey(["get_session"])).downstream()),
cron_schedule="*/5 * * * *"
)
]
cvb
02/01/2023, 3:25 PMYehuda Ornstein
02/01/2023, 3:26 PMYehuda Ornstein
02/01/2023, 3:34 PMYehuda Ornstein
02/01/2023, 3:35 PM