8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c953b4 commit 21093c0Copy full SHA for 21093c0
coderd/provisionerdserver/provisionerdserver.go
@@ -242,10 +242,8 @@ func (s *server) heartbeatLoop() {
242
}
243
start := s.timeNow()
244
hbCtx, hbCancel := context.WithTimeout(s.lifecycleCtx, s.heartbeatInterval)
245
- if err := s.heartbeat(hbCtx); err != nil {
246
- if !xerrors.Is(err, context.DeadlineExceeded) && !xerrors.Is(err, context.Canceled) {
247
- s.Logger.Error(hbCtx, "heartbeat failed", slog.Error(err))
248
- }
+ if err := s.heartbeat(hbCtx); err != nil && !database.IsQueryCanceledError(err) {
+ s.Logger.Error(hbCtx, "heartbeat failed", slog.Error(err))
249
250
hbCancel()
251
elapsed := s.timeNow().Sub(start)
0 commit comments