mirror of
https://github.com/hibiken/asynq.git
synced 2024-11-10 11:31:58 +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