Can I override max_parallelism via the @workflow d...
# ask-ai
a
Can I override max_parallelism via the @workflow decorator?
a
It seems likely that you cannot directly override
max_parallelism
via the
@workflow
decorator itself. Instead,
max_parallelism
is typically set at execution time (e.g., via the Flyte UI, CLI, or when creating a LaunchPlan), not as a parameter to the
@workflow
decorator. This is supported by the absence of
max_parallelism
in the documented arguments for the
@workflow
decorator and by examples showing
max_parallelism
being set in
LaunchPlan.get_or_create
or via execution settings, not in the workflow definition itself (c822b0d1, b6fe8f48, 9be9dd80). Would you like more detail or code examples on how to set
max_parallelism
using LaunchPlans or at execution time? Sources: - Flyte Nested Parallelization Example - b6fe8f48 - 9be9dd80 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.