mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
@in_progress got cleared in #requeue but was being logged after the requeue. Also, removing redundant log statement.
This commit is contained in:
parent
e7043c8651
commit
8f7df0ab2f
1 changed files with 2 additions and 3 deletions
|
@ -162,12 +162,11 @@ module Sidekiq
|
|||
watchdog("Manager#hard_shutdown_in died") do
|
||||
# We've reached the timeout and we still have busy workers.
|
||||
# They must die but their messages shall live on.
|
||||
logger.info("Still waiting for #{@busy.size} busy workers")
|
||||
logger.warn { "Terminating #{@busy.size} busy worker threads" }
|
||||
logger.warn { "Work still in progress #{@in_progress.values.inspect}" }
|
||||
|
||||
requeue
|
||||
|
||||
logger.warn { "Terminating #{@busy.size} busy worker threads" }
|
||||
logger.warn { "Work still in progress #{@in_progress.values.inspect}" }
|
||||
@busy.each do |processor|
|
||||
if processor.alive? && t = @threads.delete(processor.object_id)
|
||||
t.raise Shutdown
|
||||
|
|
Loading…
Reference in a new issue