There is no official hard limit documented for Flyte's map_task fanout, but community reports and issues indicate that scaling beyond 1,000 mapped tasks can lead to failures or panics, especially due to backend storage and Kubernetes array job plugin limitations. For example, attempts to fan out to 10,000 tasks have resulted in runtime errors and system panics, and even 1,000+ can cause issues depending on cluster configuration and etcd storage (
Flyte Issue #2739,
Flyte Issue #3709). The default maxArrayJobSize and etcd storage constraints are common bottlenecks.
The Flyte team recommends using map_task for large-scale parallelism but suggests keeping the fanout to a few thousand at most, and to use dynamic workflows or chunking if you need to go higher. If you are seeing issues at 500-1,000, check your cluster's resource limits and the maxArrayJobSize setting. For very large fanouts, consider breaking the workload into smaller batches or using dynamic workflows as a workaround (
Flyte Map Tasks Guide,
Flyte Blog).
Would you like more detail on configuration tuning or workarounds for large fanouts?
Sources:
-
Flyte Issue #2739
-
Flyte Issue #3709
-
Flyte Map Tasks Guide
-
Flyte Blog π 0 button π 0 button π‘
Hint: Mention @runllm in the thread for followups.