Skip to content

Commit

Permalink
Merge pull request #591 from jiangkaihua/master
Browse files Browse the repository at this point in the history
disp job in default queue
  • Loading branch information
volcano-sh-bot authored Dec 9, 2019
2 parents 5765f3c + 0564a5f commit 75ccb50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/cli/job/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func RunJob() error {
return err
}

if launchJobFlags.Name == "" {
if launchJobFlags.Name == "" && launchJobFlags.FileName == "" {
err = fmt.Errorf("job name cannot be left blank")
return err
}
Expand Down Expand Up @@ -102,6 +102,10 @@ func RunJob() error {
return err
}

if newJob.Spec.Queue == "" {
newJob.Spec.Queue = "default"
}

fmt.Printf("run job %v successfully\n", newJob.Name)

return nil
Expand Down

0 comments on commit 75ccb50

Please sign in to comment.