mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Latest changes
This commit is contained in:
parent
70d189232b
commit
9c9c6caeec
1 changed files with 19 additions and 0 deletions
19
Changes.md
19
Changes.md
|
@ -1,3 +1,22 @@
|
||||||
|
# Sidekiq Changes
|
||||||
|
|
||||||
|
HEAD
|
||||||
|
-----------
|
||||||
|
|
||||||
|
- The exception triggering a retry is now passed into `sidekiq_retry_in`,
|
||||||
|
allowing you to retry more frequently for certain types of errors.
|
||||||
|
[#2619, kreynolds]
|
||||||
|
```ruby
|
||||||
|
sidekiq_retry_in do |count, ex|
|
||||||
|
case ex
|
||||||
|
when RuntimeError
|
||||||
|
5 * count
|
||||||
|
else
|
||||||
|
10 * count
|
||||||
|
end
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
3.5.1
|
3.5.1
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue