Brian Ren
05/01/2023, 9:16 AMend_date
in a scheduled job, instead of pausing it from UI. How can we do that? I couldn’t find anything mentioned in the docs.Zachary Bluhm
05/01/2023, 1:26 PM@schedule(job=job, cron_schedule='0 0 * * *', execution_timezone=DEFAULT_TIMEZONE)
def daily_schedule(context: ScheduleEvaluationContext) -> ScheduleDefinition:
scheduled_date = context.scheduled_execution_time.strftime('%Y-%m-%d')
return RunRequest(run_key=None, tags={'date': scheduled_date},)
You can set the scheduled_date tag to whatever suits your needs. Would that work?Brian Ren
05/01/2023, 1:41 PMZachary Bluhm
05/01/2023, 1:42 PMend_date
in a schedule job"
I didn't realize you were dynamically trying to configure whether a schedule should be turned offTim Castillo
05/01/2023, 4:17 PMsandy
05/01/2023, 6:00 PMBrian Ren
05/02/2023, 9:53 AMsandy
05/02/2023, 3:08 PMBrian Ren
05/02/2023, 3:29 PM