def seconds_interval_work_policy(pendulum_utcnow): from flowmaster.operators.etl.policy import ETLNotebook return ETLNotebook.WorkPolicy( triggers=ETLNotebook.WorkPolicy.TriggersPolicy( schedule=ETLNotebook.WorkPolicy.TriggersPolicy.SchedulePolicy( timezone="Europe/Moscow", start_time="00:00:00", from_date=None, interval=60, )))
def work_policy(pendulum_utcnow): from flowmaster.operators.etl.policy import ETLNotebook return ETLNotebook.WorkPolicy( triggers=ETLNotebook.WorkPolicy.TriggersPolicy( schedule=ETLNotebook.WorkPolicy.TriggersPolicy.SchedulePolicy( timezone="Europe/Moscow", start_time="00:00:00", from_date=pendulum.today() - dt.timedelta(5), interval="daily", )))