mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
add example
This commit is contained in:
parent
c70c19d208
commit
d1d8c529aa
1 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,13 @@ HEAD
|
|||
---------
|
||||
|
||||
- Add `Sidekiq.via` API for targeting shards [#5269]
|
||||
```ruby
|
||||
SHARD1 = ConnectionPool.new { Redis.new(db: 0) }
|
||||
SHARD2 = ConnectionPool.new { Redis.new(db: 1) }
|
||||
Sidekiq.via(SHARD2) do
|
||||
Sidekiq::Queue.all.sum(&:size)
|
||||
end
|
||||
```
|
||||
- Excise "worker" from codebase [#4955]
|
||||
- Ensure batch callback metrics are always fired [#5217]
|
||||
- Added `error_type` tag for `job.failures` metrics [#5211]
|
||||
|
|
Loading…
Add table
Reference in a new issue