Lower the tool update interval to 1 minute
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
f92ac2a74f
commit
9101cdc0a2
1 changed files with 4 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue