-
Notifications
You must be signed in to change notification settings - Fork 705
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
Submit Argo workflow #1252
Submit Argo workflow #1252
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve with some enhancement comments
@@ -81,6 +85,7 @@ func main() { | |||
caCrt := flag.String("ca-crt", "", "CA certificate file.") | |||
caKey := flag.String("ca-key", "", "CA private key file.") | |||
port := flag.Int("port", 50051, "TCP port to listen on.") | |||
isArgoMode := flag.Bool("argo-mode", false, "Enable Argo workflow model.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe also need to configure the k8s API endpoint address in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point and I will add it when implementing the Fetch
interface.
// | ||
// 1. Local model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will the "local mode" move to couler "docker mode"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The local mode
here is the current implementation. Will move to docker mode
if the docker mode
is ready in Couler.
@@ -82,6 +78,9 @@ func (s *Server) Run(req *pb.Request, stream pb.SQLFlow_RunServer) error { | |||
res, err = encodeRow(s) | |||
case string: | |||
res, err = encodeMessage(s) | |||
case sf.WorkflowJob: | |||
job := r.(sf.WorkflowJob) | |||
res = &pb.Response{Response: &pb.Response_Job{Job: &pb.Job{Id: job.JobID}}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you also update the pysqlflow, please refer to this PR in the pysqlflow PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, there is a task in the TODO list #1066
…o submit_interface
This PR is part of #1066, add
SubmitWorkflow
implement ofRun
interface to callcodegen_couler.go
.TODO:
codegen_couler.go