Skip to content

Commit

Permalink
fix: in progress ticker should also mark jetstream message as in prog…
Browse files Browse the repository at this point in the history
…ress
  • Loading branch information
jlarfors committed Mar 14, 2024
1 parent 79f821f commit 092ab47
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/hz/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,13 @@ func (c *Controller) handleControlLoop(
case <-ctx.Done():
return
case <-ticker.C:
slog.Info("ticker in progress")
if err := lock.InProgress(); err != nil {
slog.Error("marking message in progress", "error", err)
slog.Error("resetting mutex lock", "error", err)
}
if err := msg.InProgress(); err != nil {
slog.Error("marking message in progress", "error", err)
}
slog.Info("ticker in progress")
case <-reconcileDone:
return
}
Expand Down

0 comments on commit 092ab47

Please sign in to comment.