Garrett Delfosse
Garrett Delfosse
This is a collection of tasks related to stabilizing our internal tracking of user activity from a workspace. Once completed, the code should ensure that there's a single place to...
It's become clear that only `workspacestats.ReportAgentStat()` is the only caller of `StatsBatcher.Add()`. Using the stats batcher saves us a DB call, but only 1 call is saved and many are...
This moves the `batchstats.Batcher` and `workspaceusage.Tracker` into the `workspacestats` package to keep all updates to `last_used_at` inside the same package. There are no functional changes in this PR. There is...
Moves the updating of `last_used_at` for affected workspaces into the `workspacestat` package. Because of a cyclical import between `workspacestats` and `schedule` I've opted to pass the function into the schedule...
Fix for https://github.com/coder/customers/issues/639 The `pq.Listener` we use for PubSub does not expose a way to hook into the lifecycle of reconnecting and that prevents us from supporting rotating passwords on...