lib/sidekiq/limit_fetch/global/monitor.rb in sidekiq-limit_fetch-1.2 vs lib/sidekiq/limit_fetch/global/monitor.rb in sidekiq-limit_fetch-1.3
- old
+ new
@@ -3,11 +3,11 @@
extend self
HEARTBEAT_NAMESPACE = 'heartbeat:'
PROCESSOR_NAMESPACE = 'processor:'
- HEARTBEAT_TTL = 400
- REFRESH_TIMEOUT = 180
+ HEARTBEAT_TTL = 90
+ REFRESH_TIMEOUT = 60
def start!(ttl=HEARTBEAT_TTL, timeout=REFRESH_TIMEOUT)
Thread.new do
loop do
update_heartbeat ttl