mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
verbage
This commit is contained in:
parent
f39be47e64
commit
30da69dcbd
2 changed files with 8 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
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.
|
||||
- **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
|
||||
|
|
|
@ -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
|
||||
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
|
||||
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
|
||||
|
||||
|
@ -33,9 +33,14 @@ just during job execution.
|
|||
```ruby
|
||||
if Sidekiq::VERSION < '3'
|
||||
# old behavior
|
||||
Sidekiq.configure_server do |config|
|
||||
config.server_middleware do |chain|
|
||||
chain.add MyErrorService::Middleware
|
||||
end
|
||||
end
|
||||
else
|
||||
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
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue