-
Notifications
You must be signed in to change notification settings - Fork 684
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] default_project
is not used when using register_launch_plan
method.
#4889
Comments
🤖 Hey @debajyoti-truefoundry, great to see you here again! Running into a bit of a snag, huh? Let's dive in and see if we can untangle this issue together. Based on the code you've shared, it seems like the In the Flyte codebase, the creation of a launch plan, which could be considered as a registration process, is handled by the To resolve this issue, you could modify the function that creates the launch plan to use the func getLaunchPlanCreateRequest(workflowIdentifier *core.Identifier, defaultProject string) admin.LaunchPlanCreateRequest {
return admin.LaunchPlanCreateRequest{
Id: &core.Identifier{
ResourceType: core.ResourceType_LAUNCH_PLAN,
Project: defaultProject,
Domain: "development",
Name: "name",
Version: "version",
},
Spec: &admin.LaunchPlanSpec{
WorkflowId: workflowIdentifier,
DefaultInputs: &core.ParameterMap{
Parameters: map[string]*core.Parameter{
"foo": {
Var: &core.Variable{
Type: &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_STRING}},
},
Behavior: &core.Parameter_Default{
Default: coreutils.MustMakeLiteral("foo-value"),
},
},
},
},
},
}
} In this modified function, Please note that this is a potential solution based on the provided context and the available information in the Flyte repository. If this doesn't resolve your issue, could you please provide more details about your setup and the steps you're following? This will help in understanding the issue better and finding a more accurate solution. Sources
|
thanks @ChungYujoyce! |
Describe the bug
When I execute this, I get an error,
Expected behavior
default_project
should be used when registering a launch plan.Additional context to reproduce
No response
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: