Idriss Bellil
04/16/2026, 9:32 AMMarvin
04/16/2026, 9:32 AMMarvin
04/16/2026, 9:34 AMprefect.flow-run.Crashed
- Threshold: 1
- Within (debounce): 0s (or very small)
- For each: prefect.resource.id (so each new run has its own bucket and can trigger again)
That setup will fire on every crash and can keep resubmitting.
Important guardrails (to avoid infinite loops):
- There’s no native “max firings” on automations. If you want to stop after N attempts, add a simple guard:
- Pass an attempt parameter in the automation’s Run Deployment action and increment it each time; have your flow read it and stop resubmitting after N.
- Or add a second automation that alerts/escalates if there are ≥ N crashes within W minutes for that deployment.
- Concurrency limits can also help prevent piling up retries.
Notes on retries vs infra failures:
- Flow-level retries won’t help if the run never starts (e.g., Fargate can’t pull the image). Your automation approach is the right tool for infra-startup failures.
If you share a screenshot or JSON of your current automation, I can suggest the exact tweaks.
References:
- Automations guide
- Debouncing (the within window)
- Flow retries