diff --git a/service/worker/scanner/history/scavenger.go b/service/worker/scanner/history/scavenger.go index 741f4f9d975..496f5861b4d 100644 --- a/service/worker/scanner/history/scavenger.go +++ b/service/worker/scanner/history/scavenger.go @@ -158,6 +158,9 @@ func (s *Scavenger) loadTasks( return err } + // Heartbeat to prevent heartbeat timeout. + s.heartbeat(ctx) + task := s.filterTask(item) if task == nil { continue