Skip to content

Commit

Permalink
chore: (ci status) #240 bump up default wait interval
Browse files Browse the repository at this point in the history
Per discussion in #240, lets just bump up the interval, totally open to putting it behind a flag, but in the context of waiting for a an entire pipeline to finish, 1s is clearly a bit too aggressive.
  • Loading branch information
zaquestion authored Jun 29, 2021
1 parent ad3de9c commit e744d4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/ci_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ var ciStatusCmd = &cobra.Command{

// filter out old jobs
jobs = latestJobs(jobs)

if len(jobs) == 0 {
log.Fatal("no CI jobs found in pipeline ", pipelineID, " on remote ", rn)
return
Expand All @@ -97,7 +96,7 @@ var ciStatusCmd = &cobra.Command{
fmt.Fprintln(w)

// don't spam the api TOO much
time.Sleep(1 * time.Second)
time.Sleep(10 * time.Second)
}

fmt.Fprintf(w, "\nPipeline Status: %s\n", jobs[0].Pipeline.Status)
Expand Down

0 comments on commit e744d4a

Please sign in to comment.