We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent951dfaa commitf34592fCopy full SHA for f34592f
coderd/workspaceagents.go
@@ -1171,6 +1171,13 @@ func (api *API) workspaceAgentReportStats(rw http.ResponseWriter, r *http.Reques
1171
templateSchedule,err:= (*(api.TemplateScheduleStore.Load())).Get(ctx,api.Database,workspace.TemplateID)
1172
// If the template schedule fails to load, just default to bumping without the next transition and log it.
1173
iferr!=nil {
1174
+// There's nothing we can do if the query was canceled, the
1175
+// client most likely went away so we just return an internal
1176
+// server error.
1177
+ifdatabase.IsQueryCanceledError(err) {
1178
+httpapi.InternalServerError(rw,err)
1179
+return
1180
+}
1181
api.Logger.Error(ctx,"failed to load template schedule bumping activity, defaulting to bumping by 60min",
1182
slog.F("workspace_id",workspace.ID),
1183
slog.F("template_id",workspace.TemplateID),