mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-25 07:12:17 +08:00
fix a missing ticker.stop()
This commit is contained in:
parent
a04ba6411d
commit
c70ff6a335
@ -274,6 +274,7 @@ func (s *Scheduler) runHeartbeater() {
|
||||
case <-s.done:
|
||||
s.logger.Debugf("Scheduler heatbeater shutting down")
|
||||
s.rdb.ClearSchedulerEntries(s.id)
|
||||
ticker.Stop()
|
||||
return
|
||||
case <-ticker.C:
|
||||
s.beat()
|
||||
|
Loading…
Reference in New Issue
Block a user