Просмотр исходного кода

Merge pull request #1701 from porter-dev/nafees/hotfix-waitforjob

[hotfix] Increase timeout to 30 mins while waiting for job
abelanger5 4 лет назад
Родитель
Сommit
e57e1d1a8f
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      cli/cmd/job.go

+ 2 - 3
cli/cmd/job.go

@@ -166,8 +166,8 @@ func waitForJob(_ *types.GetAuthenticatedUserResponse, client *api.Client, args
 		return pausedErr
 	}
 
-	// if no job exists with the given revision, wait up to 5 minutes
-	timeWait := time.Now().Add(5 * time.Minute)
+	// if no job exists with the given revision, wait up to 30 minutes
+	timeWait := time.Now().Add(30 * time.Minute)
 
 	for time.Now().Before(timeWait) {
 		// get the jobs for that job chart
@@ -196,7 +196,6 @@ func waitForJob(_ *types.GetAuthenticatedUserResponse, client *api.Client, args
 
 		// otherwise, return no error
 		time.Sleep(10 * time.Second)
-		continue
 	}
 
 	return fmt.Errorf("timed out waiting for job")