2
0
Эх сурвалжийг харах

wait up to 30 mins for a job to finish and give 5 mins for a job revision to update

Mohammed Nafees 4 жил өмнө
parent
commit
eef665eb8e
1 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 3 3
      cli/cmd/job.go

+ 3 - 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
@@ -180,7 +180,7 @@ func waitForJob(_ *types.GetAuthenticatedUserResponse, client *api.Client, args
 		job := getJobMatchingRevision(uint(jobRelease.Release.Version), jobs)
 
 		if job == nil {
-			time.Sleep(10 * time.Second)
+			time.Sleep(5 * time.Minute)
 			continue
 		}