https://prefect.io logo
Title
c

cramos

06/09/2022, 2:59 PM
Orion with Cloud 2.0: Hello, i have a deployment set up with a cron scheduler (runs every 5 minutes). I noticed that if i shut down the agent, lets say for an hour or so, and start it up again, all the scheduled runs during that hour will be launched. Is possible to limit this behavior? Like if scheduled run is like X minutes late, mark it as a failure?
1
Example of deployment
DeploymentSpec(
    flow_location="/path/to/flow/flow.py",
    name="flow",
    schedule=CronSchedule(
        cron="*/5 * * * *",
    ),
    flow_runner=SubprocessFlowRunner(),
    flow_storage=FileStorageBlock(base_path='/path/storage')
)
Running on a VM
k

Kevin Kho

06/09/2022, 3:09 PM
Ah we would need Automations from 1.0 to make it’s way to 2.0. That is currently work in progress.
c

cramos

06/09/2022, 3:10 PM
Gotcha, good to know its in the works!