fix: reduce idle workspace queries (#7022)

This commit is contained in:
Colin Adler
2023-04-05 20:58:54 -05:00
committed by GitHub
parent 63f9ef2480
commit a32951c46a
5 changed files with 14 additions and 68 deletions

View File

@ -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.