Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/sidekiq/middleware/server/retry_jobs.rb
3  lib/sidekiq/middleware/server/retry_jobs.rb
@@ -64,6 +64,9 @@ def call(worker, msg, queue)
# ignore, will be pushed back onto queue during hard_shutdown
rescue Exception => e
+ if defined?(::ActiveRecord) && e.class == ::ActiveRecord::StatementInvalid && e.message.match("Sidekiq::Shutdown")
+ raise Sidekiq::Shutdown
+ end
raise e unless msg['retry']
max_retry_attempts = retry_attempts_from(msg['retry'], @max_retries)

No commit comments for this range

Something went wrong with that request. Please try again.