Skip to content

Commit 46fa216

Browse files
chore: add check for err != context.Canceled
1 parent c45817b commit 46fa216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/autobuild/lifecycle_executor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ func (e *Executor) runOnce(t time.Time) Stats {
399399
}
400400
return nil
401401
}()
402-
if err != nil {
402+
if err != nil && !xerrors.Is(err, context.Canceled) {
403403
log.Error(e.ctx, "failed to transition workspace", slog.Error(err))
404404
statsMu.Lock()
405405
stats.Errors[wsID] = err

0 commit comments

Comments
 (0)