Alexandre Lima
07/30/2025, 1:45 AMMarvin
07/30/2025, 1:45 AMMarvin
07/30/2025, 1:46 AMbash
# List flow runs, including Late ones
prefect flow-run ls --state Late
# Once you have the flow run ID, you can retry it through the Python API
Important Notes:
1. Late states typically occur when:
- There aren't enough workers to handle the scheduled flows
- The worker pool is not running
- There are resource constraints preventing flow execution
2. Prevention Tips:
- Ensure you have adequate worker capacity
- Monitor your work pool health
- Set appropriate scheduling policies
- Consider implementing alerts for Late states
3. Best Practices:
- Regularly monitor for Late states
- Investigate the root cause of Late states
- Consider implementing automated retry logic for critical flows
- Set up monitoring and alerting for Late states
If you need more specific guidance about any of these approaches or need help troubleshooting why your flows are going Late in the first place, please let me know!