-
Notifications
You must be signed in to change notification settings - Fork 670
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] Flytectl create execution doesn't respect targetProject or targetDomain #4628
Comments
🤖 Hello @katrogan, Nice to meet you! I'm Dosu, an AI assistant here to help you with your Flyte inquiries. While we're waiting for a human maintainer, I'm here to assist you with solving bugs, answering your questions, and helping you become an even better contributor to our project. Let's work together to get your issue sorted out! The behavior you're experiencing is due to the way the Here is the relevant part of the code: type AdminExecutionCreateRequest struct {
Project string `json:"project,omitempty"`
Domain string `json:"domain,omitempty"`
Name string `json:"name,omitempty"`
Spec *AdminExecutionSpec `json:"spec,omitempty"`
Inputs *CoreLiteralMap `json:"inputs,omitempty"`
} As you can see, there are no You can find this code in the flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_request.go file. I hope this clarifies the current behavior. If you have any further questions or need additional clarification, please let me know. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
A few things here:
The combination of 1. and 2. creates this confusion where in order to specify a different project/domain we can only use the cli flags. Instead, we should relax the need for project/domain in the case of wdyt, @katrogan ? |
That sounds great! I was a little confused at first by whether target referred to the reference workflow/task in the execFile or the desired execution time value and improving the clarity around how we parse the flags would be helpful another thing that threw me off is that the execFile expects a task or workflow, although conventionally we launch executions by referencing a task or launch plan. Can file an issue to track that as well if you think it's worthwhile @eapolinario |
Describe the bug
When I specify a distinct targetProject and targetDomain in the execFile passed to
flytectl create execution
e.g.
but reference a workflow registered in flytesnacks-development like so:
the launched execution ends up in flytesnacks-development rather than flytetester-production
Expected behavior
Launching an execution in a different project and/or domain should be possible via flytectl
Additional context to reproduce
See description
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: