Jordan Fisher
10/27/2025, 4:33 PMMarvin
10/27/2025, 4:33 PMMarvin
10/27/2025, 4:35 PMretries, retry_delay_seconds (no jitter option)
- API ref: prefect.flows API
- Task decorator supports: retries, retry_delay_seconds (can be a number, list, or callable), retry_jitter_factor, and retry_condition_fn
- API ref: prefect.tasks API
Docs/how-to on retries: Retries how-to
Source for reference:
- Flow decorator signature: prefect/flows.py
- Task decorator signature: prefect/tasks.pyJordan Fisher
10/27/2025, 4:49 PMMarvin
10/27/2025, 4:49 PMMarvin
10/27/2025, 4:52 PM@task(retries=..., retry_delay_seconds=...)) to minimize app-level failures, though this won’t help if the entire container dies.
If you can share what’s causing the crashes (OOM, SIGTERM during scale-in, spot interruptions, etc.) and whether you’re on Prefect Cloud or OSS, I can recommend a concrete setup (e.g., a specific Automation or an alternative worker/pool).