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:
parent
1bfdf99821
commit
7e9b79ec11
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue