mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix: reduce idle workspace queries (#7022)
This commit is contained in:
@ -186,7 +186,7 @@ func New(options *Options) *API {
|
||||
panic("coderd: both AppHostname and AppHostnameRegex must be set or unset")
|
||||
}
|
||||
if options.AgentConnectionUpdateFrequency == 0 {
|
||||
options.AgentConnectionUpdateFrequency = 3 * time.Second
|
||||
options.AgentConnectionUpdateFrequency = 15 * time.Second
|
||||
}
|
||||
if options.AgentInactiveDisconnectTimeout == 0 {
|
||||
// Multiply the update by two to allow for some lag-time.
|
||||
|
Reference in New Issue
Block a user