mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user