Skip to content

Commit

Permalink
Add --name flag to submit job (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradithya authored and feast-ci-bot committed Mar 29, 2019
1 parent a0111bb commit 2e7d717
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/feast/cmd/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (

var (
waitJobComplete = false
jobName = "feastimport"
)

// jobsCmd represents the jobs command
Expand Down Expand Up @@ -69,6 +70,7 @@ var jobsAbortCmd = &cobra.Command{

func init() {
jobsRunCmd.Flags().BoolVar(&waitJobComplete, "wait", false, "wait for job to run to completion")
jobsRunCmd.Flags().StringVar(&jobName, "name", "feastimport", "job name to be submitted")
jobsCmd.AddCommand(jobsRunCmd)
jobsCmd.AddCommand(jobsAbortCmd)
rootCmd.AddCommand(jobsCmd)
Expand All @@ -86,6 +88,7 @@ func runJob(ctx context.Context, path string) error {
initConn()
jobsClient := core.NewJobServiceClient(coreConn)
out, err := jobsClient.SubmitJob(ctx, &core.JobServiceTypes_SubmitImportJobRequest{
Name: jobName,
ImportSpec: is,
})
if err != nil {
Expand Down

0 comments on commit 2e7d717

Please sign in to comment.