Mitch
05/25/2026, 5:19 PMMarvin
05/25/2026, 5:19 PMMarvin
05/25/2026, 5:21 PMrun_deployment(...) for child runs instead of creating a huge parent/subflow graph
- This scales much better operationally
2. Use batching/chunking
- Instead of 10,000 direct subflows, group work into batches
3. Use tasks for fine-grained parallelism
- If these “subflows” are really just many parallel units of work, tasks are often a better fit than thousands of nested subflows
There is also a configurable limit:
- PREFECT_API_MAX_FLOW_RUN_GRAPH_NODES
- raising it is possible, but I wouldn’t recommend it as the main solution because the UI/graph still becomes heavy
Relevant docs:
- Flows concept docs
- Running flows / deployments docs
- `run_deployment` API docs
If you want, I can help you redesign the pattern you’re using for those 10,000 subflows and suggest the most scalable Prefect approach.Mitch
05/25/2026, 6:08 PMMarvin
05/25/2026, 6:08 PMMarvin
05/25/2026, 6:08 PMrun_deployment(...)
- Treat those child runs as operationally independent units, even if a coordinator flow triggers them
That helps with execution/scaling, but it does not magically make a 100k-node graph view feasible. It mostly means:
- better scaling
- better isolation
- less dependence on one giant parent flow visualization
So to your direct question:
No — there is not currently a supported way to view a full 100k-subflow DAG/graph in the Prefect dashboard.
What you can do instead:
- Use the parent flow as a coordinator only
- Track progress via:
- deployment run counts
- states (Running, Completed, Failed, etc.)
- tags / naming conventions / parameters
- custom artifacts or external metadata store
- Inspect child runs through filtered flow run views instead of a single graph
For example, common patterns are:
- Give every child run a batch ID / job ID
- Query/filter flow runs by that identifier
- Publish aggregate progress from the parent as an artifact
- Store full DAG/job metadata in your own DB if you need lineage at 100k scale
If the DAG itself is important, Prefect is usually better used here as the orchestrator, while the detailed job graph lives elsewhere.
If helpful, I can sketch a good architecture for:
- 100k GPU jobs with 1k concurrency
- how to preserve observability
- how to model lineage/progress without relying on the Prefect graph UI