Schedule.调度计划
概览
简单调度计划
from prefect import task, Flow
from datetime import timedelta
from prefect.schedules import IntervalSchedule
@task
def say_hello():
print("Hello, world!")
schedule = IntervalSchedule(interval=timedelta(minutes=2))
with Flow("Hello", schedule) as flow:
say_hello()
flow.run()复杂调度计划
时间间隔时钟
时间点定时时钟
日期时钟
调度计划产生Prefect参数(0.9.2以上版本支持)
过滤器
调整
Last updated