Skip to content

Commit

Permalink
Lower the tool update interval to 1 minute
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
  • Loading branch information
gabriel-samfira committed Jul 1, 2023
1 parent 71129a5 commit 5d7cf5b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions runner/common/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ const (
PoolConsilitationInterval = 5 * time.Second
PoolReapTimeoutInterval = 5 * time.Minute
// Temporary tools download token is valid for 1 hour by default.
// Set this to 15 minutes. This should allow enough time even on slow
// clouds for the instance to spin up, download the tools and join gh.
PoolToolUpdateInterval = 15 * time.Minute
// There is no point in making an API call to get available tools, for every runner
// we spin up. We cache the tools for one minute. This should save us a lot of API calls
// in cases where we have a lot of runners spin up at the same time.
PoolToolUpdateInterval = 1 * time.Minute

// BackoffTimer is the time we wait before attempting to make another request
// to the github API.
Expand Down

0 comments on commit 5d7cf5b

Please sign in to comment.