It seems you're experiencing an issue where scheduled flows in Prefect Cloud remain stuck in the "Scheduled" state instead of transitioning to "Late". This can be quite frustrating, I imagine. Based on the recent findings, here are some steps you can take to troubleshoot this issue:
1.
Check Worker Configuration: Ensure that your workers are running and properly configured to pick up scheduled flows. Misconfigurations or network issues can prevent workers from retrieving scheduled runs.
2.
Review Scheduler Settings: The Prefect Scheduler only creates new flow runs and places them in the Scheduled state. It doesn't handle execution. Make sure that your scheduling settings are correct and that the scheduler is functioning as expected. You can adjust scheduler behaviors through the Prefect config settings.
Learn more about scheduler settings.
3.
Inspect Logs: Look at the logs for any errors or warnings that might indicate why the flows are not transitioning. This might provide clues about what's going wrong.
4.
Update Prefect: If you haven't already, consider updating to the latest version of Prefect. Sometimes, bugs are fixed in newer releases.
5.
Investigate Known Issues: There are known issues where flows can get stuck in various states due to configuration or deployment issues. You might want to explore some of these reported issues on GitHub to see if any align with your problem:
-
Flow runs stuck in AwaitingRetry after deployment deletion
-
Runs in AwaitingConcurrencySlot not picked up
If these steps don't resolve your issue, you might consider reaching out to Prefect support for more targeted assistance. They may have additional insights or solutions tailored to your specific setup.