Extract constant

This commit is contained in:
Mike Perham 2021-11-01 10:44:26 -07:00
parent 21ab89b3c0
commit ba2fa2d26c
1 changed files with 3 additions and 1 deletions

View File

@ -69,10 +69,12 @@ module Sidekiq
private unless $TESTING
BEAT_PAUSE = 5
def start_heartbeat
loop do
heartbeat
sleep 5
sleep BEAT_PAUSE
end
Sidekiq.logger.info("Heartbeat stopping...")
end