Thang Le
05/28/2026, 5:10 PMMarvin
05/28/2026, 5:10 PMMarvin
05/28/2026, 5:11 PMContinuousSchedule type in Prefect 3.x.
Prefect 3.x deployments support these schedule types:
- Interval
- Cron
- RRule
So if by “continuous schedule” you mean a literal ContinuousSchedule, the answer is no.
If you mean “run continuously / as often as possible,” the closest option is usually an interval schedule, for example every few seconds:
python
from datetime import timedelta
from prefect import flow
from prefect.schedules import Interval
@flow
def my_flow():
print("running")
if __name__ == "__main__":
my_flow.serve(
name="my-deployment",
schedule=Interval(timedelta(seconds=1))
)
A few caveats:
- Prefect schedules create scheduled flow runs at defined times — they are not a “while true” continuous process.
- If the flow runtime is longer than the interval, runs can overlap unless you add concurrency controls.
- Extremely frequent schedules can put load on your work pool / workers and on the API.
If you want, I can help you choose between:
- a very short Interval
- an RRule
- a long-running polling flow pattern instead of scheduling
Docs: Schedules in Prefect 3Thang Le
05/28/2026, 5:12 PM