Skip to content

Commit 964032d

Browse files
authored
chore: ignore query cancel error in activitybump (#6476)
See https://github.com/coder/coder/actions/runs/4350254306/jobs/7600782432 It's fine to ignore this, because workspace agent stats happen async and might occur when shutting down.
1 parent 09f87d1 commit 964032d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/activitybump.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func activityBumpWorkspace(ctx context.Context, log slog.Logger, db database.Sto
8282
return nil
8383
}, nil)
8484
if err != nil {
85-
if !xerrors.Is(err, context.Canceled) {
85+
if !xerrors.Is(err, context.Canceled) && !database.IsQueryCanceledError(err) {
8686
// Bump will fail if the context is canceled, but this is ok.
8787
log.Error(ctx, "bump failed", slog.Error(err),
8888
slog.F("workspace_id", workspaceID),

0 commit comments

Comments
 (0)