1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
This commit is contained in:
Mike Perham 2014-02-25 20:36:13 -08:00
parent f39be47e64
commit 30da69dcbd
2 changed files with 8 additions and 3 deletions

View file

@ -3,7 +3,7 @@
Please see [Upgrading.md](Upgrading.md) for more comprehensive upgrade notes. Please see [Upgrading.md](Upgrading.md) for more comprehensive upgrade notes.
- **Global Error Handlers** - blocks of code which process errors which - **Global Error Handlers** - blocks of code which handle errors that
occur anywhere within Sidekiq, not just within middleware. occur anywhere within Sidekiq, not just within middleware.
- **Dead Job Queue** - jobs which run out of retries are now moved to a dead - **Dead Job Queue** - jobs which run out of retries are now moved to a dead
job queue. These jobs must be retried manually or they will expire job queue. These jobs must be retried manually or they will expire

View file

@ -21,7 +21,7 @@ changes a few data elements in Redis. To upgrade cleanly:
* Ruby 1.9 is no longer officially supported. Sidekiq's official * Ruby 1.9 is no longer officially supported. Sidekiq's official
support policy is to support the current and previous major releases support policy is to support the current and previous major releases
of Ruby and Rails. As of February 2014, that's Ruby 2.1, Ruby 2.0, Rails 4.0 of Ruby and Rails. As of February 2014, that's Ruby 2.1, Ruby 2.0, Rails 4.0
and Rails 3.2. I will accept PRs to fix issues found by users. and Rails 3.2. I will consider PRs to fix issues found by users.
## Error Service Providers ## Error Service Providers
@ -33,9 +33,14 @@ just during job execution.
```ruby ```ruby
if Sidekiq::VERSION < '3' if Sidekiq::VERSION < '3'
# old behavior # old behavior
Sidekiq.configure_server do |config|
config.server_middleware do |chain|
chain.add MyErrorService::Middleware
end
end
else else
Sidekiq.configure_server do |config| Sidekiq.configure_server do |config|
config.error_handlers << Proc.new {|ex,context| ... } config.error_handlers << Proc.new {|ex,context| MyErrorService.notify(ex, context) }
end end
end end
``` ```