-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] LaunchPlan cannot be created within a function #6062
Comments
There might be a few cases where |
We are also running into this when updating flytekit to |
Cc @eapolinario ? |
In testing flyteorg/flytekit#3043 noticed that it was actually a little bit difficult. The issue can be illustrated by something like let's say in the past
The issue is that We should check first to see if the workflow already exists with that version, and only register the launch plan if the workflow already exists. Skipping re-registration of the workflow does mean that users who were relying on this re-registration (and were somehow reconstructing serialization settings to be identical) to detect changes in workflow/task structure will no longer see errors, but that seems too far-fetched. |
Describe the bug
Launchplans do not really need to be tracked as they do not exist during runtime. It should be possible to use launchplans without an LHS reference. But currently this fails, with an error like
Expected behavior
Ideally it should be possible to create
Launchplan.create
and use it inline programmaticallyAdditional context to reproduce
It should also be possible to use lps in jupyter
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: