fix(coderd): extract provisionerdserver.StaleInterval to 90 seconds (#15643)

Follow-up from https://github.com/coder/coder/pull/15578

Extracts `provisionerdserver.StaleInterval` and sets it to 90 seconds by
default
This commit is contained in:
Cian Johnston
2024-11-28 12:57:43 +00:00
committed by GitHub
parent 7a7db9f4ad
commit ef09b51912
5 changed files with 94 additions and 35 deletions

View File

@ -50,7 +50,7 @@ func (r *ProvisionerDaemonsReport) Run(ctx context.Context, opts *ProvisionerDae
now := opts.TimeNow()
if opts.StaleInterval == 0 {
opts.StaleInterval = provisionerdserver.DefaultHeartbeatInterval * 3
opts.StaleInterval = provisionerdserver.StaleInterval
}
if opts.CurrentVersion == "" {