Skip to content

Commit

Permalink
Extract constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Nov 1, 2021
1 parent 21ab89b commit ba2fa2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/sidekiq/launcher.rb
Expand Up @@ -69,10 +69,12 @@ def stopping?

private unless $TESTING

BEAT_PAUSE = 5

def start_heartbeat
loop do
heartbeat
sleep 5
sleep BEAT_PAUSE
end
Sidekiq.logger.info("Heartbeat stopping...")
end
Expand Down

0 comments on commit ba2fa2d

Please sign in to comment.