proud-answer-87162
05/22/2025, 8:22 PMThe cached values aren't the same as the current call arguments
jolly-florist-66728
05/22/2025, 8:22 PMLaunchPlan.get_or_create
with the same launch plan name but different arguments (such as different default inputs, schedule, notifications, etc.) than a previous call. Flyte caches launch plans by name, and if you try to create a launch plan with the same name but different parameters, it raises an AssertionError
to prevent ambiguity or accidental overwrites. You must use a unique name for each distinct set of launch plan parameters, or ensure all arguments are identical for repeated calls with the same name. See the Flytekit LaunchPlan API reference and source code for details.
Would you like more detail or a code example?
Sources:
- flytekit/core/launch_plan.py
- Flytekit LaunchPlan API reference 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.