1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

add example

This commit is contained in:
Mike Perham 2022-03-30 07:18:52 -07:00
parent c70c19d208
commit d1d8c529aa

View file

@ -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]