hibiken / asynq

Simple, reliable, and efficient distributed task queue in Go
MIT License
10.03k stars 716 forks source link

Add the scheduler option HeartbeatInterval #956

Closed pior closed 2 weeks ago

pior commented 2 weeks ago

Context

From https://github.com/hibiken/asynq/issues/510:

Currently the tick interval of Scheduler.runHeartbeater() and the ttl of WriteSchedulerEntries() are both 5*time.Second scheduler entries is prone to expire when redis is slow to respond

Redo of https://github.com/hibiken/asynq/pull/896

Fixes https://github.com/hibiken/asynq/issues/510

Changes