1
0
Fork 0
mirror of https://github.com/endofunky/sidetiq.git synced 2022-11-09 13:53:30 -05:00

Log warning message when restarting the clock from the middleware.

This commit is contained in:
Tobias Svensson 2013-02-06 11:16:06 +00:00
parent 1bfdf99821
commit 7e9b79ec11

View file

@ -6,7 +6,10 @@ module Sidetiq
def call(*args)
# Restart the clock if the thread died.
@clock.start! if !@clock.ticking?
if !@clock.ticking?
Sidekiq.logger.warn "Sidetiq::Clock thread died. Restarting..."
@clock.start!
end
yield
end
end