View in #prefect-community on Slack
Question
@Marwan_Sarieddine: Hi folks, a question about prefect cloud automations.
What does the “does not start” condition really mean? Does it wait to check until the flow run is in a “Running” state; or does a “Submitted” state equate to a “start”?
i.e. given automation like the one shown in the screenshot
“When any run from {flow_name} does not start after 60s cancel that run”
Does that mean this will wait for {flow_name} to go into a Running state or a Submitted state ?
Answer
@Anna_Geller: Running state. From the docs about this automation:
“This event fires if a flow is late to start, i.e. the flow has not entered a running state some time after the scheduled start time”
Automations | Prefect Docs
So it checks the time your flow run needed to transition from the Scheduled state into a Running state. The Submitted state is a Meta state of Scheduled (a wrapper around a Scheduled state) that adds additional metadata to the Scheduled state.