fix: lower amount of cached timezones for deployment daus (#11196)

Updates https://github.com/coder/customers/issues/384

This should help alleviate some pressure, but doesn't really fix the
root cause. See above issue for more details.
This commit is contained in:
Colin Adler
2023-12-13 16:50:29 -06:00
committed by GitHub
parent a3432b4265
commit eb81fcf1e1
4 changed files with 13 additions and 7 deletions
+3 -3
View File
@@ -152,11 +152,11 @@ func TestCache_TemplateUsers(t *testing.T) {
},
{
name: "tzOffset",
tzOffset: 1,
tzOffset: 3,
args: args{
rows: []database.InsertWorkspaceAgentStatParams{
statRow(zebra, dateH(2022, 1, 2, 1)),
statRow(tiger, dateH(2022, 1, 2, 1)),
statRow(zebra, dateH(2022, 1, 2, 3)),
statRow(tiger, dateH(2022, 1, 2, 3)),
// With offset these should be in the previous day
statRow(zebra, dateH(2022, 1, 2, 0)),
statRow(tiger, dateH(2022, 1, 2, 0)),