https://prefect.io logo
f

flavienbwk

10/11/2020, 2:26 PM
Hi, I have a question about this error :
Copy code
ValueError: Interval can not be less than one minute when deploying to Prefect Cloud.
Why was that limit set ? Why can't I decide to schedule a job every second ?
c

Chris White

10/12/2020, 2:54 PM
This limit was set to prevent users from getting into bad situations with backpressure; most deployments of Prefect run in k8s, and the latency to create a k8s job can be non-trivial
f

flavienbwk

10/12/2020, 2:59 PM
Could this be a setting in a future version of Prefect ?
c

Chris White

10/12/2020, 3:01 PM
It depends on your use case; we will most likely not change the scheduler constraint but we have discussed “event driven” flows that correspond to possibly fast event streams that we do plan to support at some point
f

flavienbwk

10/12/2020, 3:02 PM
My use case is that I have a lot of agents and want to run a lot of flows every 15 seconds 😛
c

Chris White

10/12/2020, 3:03 PM
you can manually create ad hoc flow runs through the API, and there is no constraint as to how fast those can be created