mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-25 23:32: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:
|
case <-s.done:
|
||||||
s.logger.Debugf("Scheduler heatbeater shutting down")
|
s.logger.Debugf("Scheduler heatbeater shutting down")
|
||||||
s.rdb.ClearSchedulerEntries(s.id)
|
s.rdb.ClearSchedulerEntries(s.id)
|
||||||
|
ticker.Stop()
|
||||||
return
|
return
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
s.beat()
|
s.beat()
|
||||||
|
Loading…
Reference in New Issue
Block a user