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 93 additions and 34 deletions
@@ -57,6 +57,10 @@ const (
// DefaultHeartbeatInterval is the interval at which the provisioner daemon
// will update its last seen at timestamp in the database.
DefaultHeartbeatInterval = time.Minute
// StaleInterval is the amount of time after the last heartbeat for which
// the provisioner will be reported as 'stale'.
StaleInterval = 90 * time.Second
)
type Options struct {