Skip to content

Commit

Permalink
backport of commit 17b024e (#15135)
Browse files Browse the repository at this point in the history
This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-nomad-core authored Nov 3, 2022
1 parent f47a771 commit 001668d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/15134.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cleanup: fixed missing timer.Reset for plan queue stat emitter
```
2 changes: 2 additions & 0 deletions nomad/plan_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ func (q *PlanQueue) EmitStats(period time.Duration, stopCh <-chan struct{}) {
defer stop()

for {
timer.Reset(period)

select {
case <-timer.C:
stats := q.Stats()
Expand Down

0 comments on commit 001668d

Please sign in to comment.