Mitch
09/13/2024, 1:06 AMMarvin
09/13/2024, 1:06 AMMitch
09/13/2024, 1:06 AMMarvin
09/13/2024, 1:06 AMcrashed
states as well.
3. Flow with Retry Delay Seconds runs state hooks and automations multiple times:
It addresses a related problem where retries and delays cause redundant execution of state hooks and automations, which might be causing additional issues in retries.
### Key Problems and Proposed Solutions
- Prefect currently does not handle retries for flows that fail due to infrastructure or external issues out of the box.
- Discussions in the community suggest the need for retries and delay management directly in the infrastructure configuration.
### Proposed Actions:
1. Retries Configuration in Infrastructure: Check if newer versions or updates to Prefect have added configurations for retries directly in the infrastructure blocks, like ECSTask or KubernetesJob. This might solve the problem directly.
2. Handle Crashed
States: Implement custom logic or automation that can handle crashed states and respect retry limits.
If these solutions don't cover your needs, consider following or contributing to the related GitHub issues to track or push for updates.
Lastly, these solutions are relevant for Prefect 2.x. If you're open to considering an upgrade, subsequent versions may have incorporated additional fixes.
Hope this helps!