2
0
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:
徐胖 2022-06-27 04:10:06 +08:00 committed by GitHub
parent a04ba6411d
commit c70ff6a335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()