Skip to content

Commit

Permalink
Merge pull request sidekiq#1406 from mperham/feature/reliable-fetch-f…
Browse files Browse the repository at this point in the history
…ix-attempt

Attempt a bulk requeue for reliable-fetch when shutting down.
  • Loading branch information
mperham committed Dec 27, 2013
2 parents a688547 + dd805e3 commit 89c8bed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/sidekiq/launcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def stop

manager.async.stop(:shutdown => true, :timeout => @options[:timeout])
manager.wait(:shutdown)

# Requeue everything in case there was a worker who grabbed work while stopped
Sidekiq::Fetcher.strategy.bulk_requeue([], @options)
end
end

Expand Down

0 comments on commit 89c8bed

Please sign in to comment.