The delay you're experiencing with subflow submissions in Prefect could be related to concurrency limits or priority settings within your work pools or queues. Prefect allows you to set concurrency limits at various levels, such as work pools, work queues, or deployment levels. These limits can affect how quickly subflows are submitted and executed.
Here's a brief summary of what might be happening:
1.
Concurrency Limits: If there are concurrency limits set on your work queues or pools, they could be restricting the number of subflows that can be executed concurrently. This would explain why additional subflows have a delayed start.
2.
Priority Settings: The priority of your subflows within the queue can also affect their submission order. If the queue is handling other high-priority tasks, your subflows might be queued until those are processed.
3.
Infrastructure Constraints: The infrastructure backing your Prefect setup could also be a bottleneck. If the resources (like CPU or memory) are limited, this could delay the start of additional subflows.
For more detailed information on configuring concurrency limits and understanding execution priority, you might want to explore these resources:
-
Prefect Work Pools and Queues
-
Task Run Limits
If these settings are not the cause, you might be facing an issue specific to your Prefect version or setup. Checking for known issues on the
Prefect GitHub issues page might provide additional insights.