#6266 Set the max parallelism on the execution model correctly when triggered by launch plan
Pull request opened by
Sovietaced
Tracking issue
Example: Closes
#4568
Why are the changes needed?
Our team spent a lot of time debugging why it seemed like max parallelism configuration from launch plans was not translating into workflows kicked off from the launch plan. After digging into the code it turns out the max parallelism is set on the CR but not the execution model stored in the DB so the max parallelism is never reflected in the UI.
What changes were proposed in this pull request?
Updates the execution model to have the max parallelism value from the execution config which is calculated based on the launch plan parallelism or platform/project defaults.
How was this patch tested?
Unit tests and tested in our production environment.
Setup process
Screenshots
Displaying platform defaults
Screenshot 2025-02-24 at 10 06 24 AM
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
Summary by Bito
This PR addresses a critical issue in max parallelism configuration propagation from launch plans to the execution model. The implementation ensures proper setting of max parallelism values from execution configs to request specifications when workflows are triggered from launch plans. The changes include validation checks and corresponding test cases.
Unit tests added: True
Estimated effort to review (1-5, lower is better): 1
flyteorg/flyte