diff options
Diffstat (limited to 'client/go/cmd/deploy.go')
-rw-r--r-- | client/go/cmd/deploy.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/go/cmd/deploy.go b/client/go/cmd/deploy.go index 7d180775e24..1b9883bf1e8 100644 --- a/client/go/cmd/deploy.go +++ b/client/go/cmd/deploy.go @@ -63,6 +63,7 @@ has started but may not have completed.`, log.Printf("\nUse %s for deployment status, or see", color.Cyan("vespa status")) log.Print(color.Cyan(fmt.Sprintf("https://console.vespa.oath.cloud/tenant/%s/application/%s/dev/instance/%s", opts.Deployment.Application.Tenant, opts.Deployment.Application.Application, opts.Deployment.Application.Instance))) } + waitForQueryService() } else { printErr(nil, err.Error()) } @@ -116,12 +117,20 @@ var activateCmd = &cobra.Command{ }) if err == nil { printSuccess("Activated ", color.Cyan(pkg.Path), " with session ", sessionID) + waitForQueryService() } else { printErr(nil, err.Error()) } }, } +func waitForQueryService() { + if waitSecsArg > 0 { + log.Println() + waitForService("query") + } +} + func writeSessionID(appConfigDir string, sessionID int64) { if err := os.MkdirAll(appConfigDir, 0755); err != nil { printErr(err, "Could not create directory for session ID") |