Caleb
11/05/2024, 11:15 PMMarvin
11/05/2024, 11:15 PMCaleb
11/06/2024, 12:03 AMPREFECT_LOGGING_LEVEL
and PREFECT_INTERNAL_LOGGING_LEVEL
which showed additional logs that seemed helpful. Our workers ran get_and_submit_flow_runs
and Discovered 0 scheduled_flow_runs
despite seeing 20,000+ scheduled flow runs in the Prefect Cloud portal. Any ideas why workers would not be able to discover scheduled flow runs?Marvin
11/06/2024, 12:04 AMPREFECT_API_URL
and PREFECT_API_KEY
are properly configured. Double-checking these settings can often reveal misconfigurations that affect worker communication with Prefect Cloud.
2. Flow Run Filters: There could be filtering issues where workers are incorrectly filtering out the flow runs. For instance, they might be looking for flow runs in a specific state or time range that doesn't match with the actual runs. Ensure your querying or filtering logic is aligned with your scheduling requirements.
3. Concurrency and Setting Limits: Check your workers' concurrency limits and ensure that they are high enough to handle your scheduled flow runs. Prefect allows setting limits that might constrain how many runs are processed at any given time, as described in the work pool documentation.
4. Event Loop and Execution Environment: An issue was noted in some tests related to the asyncio event loop not being available, which affected flow run execution. This could indicate potential environmental or library issues that need investigation, especially with how workers instantiate and manage their async tasks.
5. Prefect Cloud Portal Discrepancies: Sometimes, the Prefect Cloud portal might show scheduled states but not reflect the underlying issues in run discovery or execution. Ensuring your monitoring and telemetry are capturing logs properly from your workers, as indicated by logging updates, could give clues.
If your workers continue to "discover 0 scheduled_flow_runs", it might be beneficial to reach out to Prefect's support channel with this detailed context. They may offer more insights or potential configurations specific to the cloud environment or account level you are using! Or maybe your situation has become that unique bug that's waiting for a heroic GitHub post.