cuddly-jelly-27016
02/26/2025, 2:25 AMmax_parallelism arg of LaunchPlan.get_or_create not honored
Issue created by fg91
Describe the bug
When creating a LaunchPlan with LaunchPlan.get_or_create(), one can control the parallelism with max_parallelism.
The argument is not being honoured currently.
Expected behavior
@task
def foo():
@workflow
def subwf():
foo()
@workflow
def wf():
LaunchPlan.get_or_create(name="sub1", workflow=subwf, max_parallelism=1)()
LaunchPlan.get_or_create(name="sub2", workflow=subwf, max_parallelism=1)()
LaunchPlan.get_or_create(name="sub3", workflow=subwf, max_parallelism=1)()
In this example, the goal as that all LaunchPlans called in wf are started in parallel but that within each launch plan, the parallelism is limited to 1 node.
When running this workflow with pyflyte run --remote .../wf.py wf, one observes:
Screenshot 2023-12-11 at 13 10 16 Screenshot_2023-12-11_at_13_10_26
The parallelism of the inner launch plan of 25 is not correct, this should have been 1.
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
• Yes
Have you read the Code of Conduct?
• Yes
flyteorg/flytecuddly-jelly-27016
02/26/2025, 2:25 AMmax_parallelism arg of LaunchPlan.get_or_create not honored
Issue closed as completed by pvditt
flyteorg/flyte