Skip to content

Commit

Permalink
add sleep to main loop
Browse files Browse the repository at this point in the history
  • Loading branch information
omer-azmon committed May 24, 2024
1 parent 044375a commit b277580
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controller/preview.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ import (
"k8s.io/apimachinery/pkg/labels"
"net/url"
"strings"
"time"
)

const ArgoCDGitHubUsername = "argocd"
const PreviewSleepDuration = 60 * time.Second

type Previewer struct {
appLister *applisters.ApplicationLister
Expand Down Expand Up @@ -90,6 +92,7 @@ func (p *Previewer) Run() {
}
}
}
time.Sleep(time.Duration(PreviewSleepDuration))
}
}

Expand Down

0 comments on commit b277580

Please sign in to comment.