mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Changes, more Batch API work
This commit is contained in:
parent
8219243782
commit
4ec056eb9a
2 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
-----------
|
||||
|
||||
- Change `Sidekiq::Client#push_bulk` to return an array of pushed `jid`s. [#1315, barelyknown]
|
||||
- Web UI refactoring to use more API internally (yummy dogfood!)
|
||||
|
||||
2.16.1
|
||||
-----------
|
||||
|
|
|
@ -16,7 +16,7 @@ added to Redis 2.8.
|
|||
- SCAN support in the Sidekiq::SortedSet API. Here's an example that
|
||||
finds all jobs which contain the substring "Warehouse::OrderShip"
|
||||
and deletes all matching retries. If the set is large, this API
|
||||
will be much faster than standard iteration using each.
|
||||
will be **MUCH** faster than standard iteration using each.
|
||||
```ruby
|
||||
Sidekiq::RetrySet.new.scan("Warehouse::OrderShip") do |entry|
|
||||
entry.delete
|
||||
|
@ -25,6 +25,9 @@ added to Redis 2.8.
|
|||
|
||||
- Sidekiq::Batch#jobs now returns the set of JIDs added to the batch.
|
||||
- Sidekiq::Batch#jids returns the complete set of JIDs associated with the batch.
|
||||
- Sidekiq::Batch#remove\_jobs(jid, jid, ...) removes JIDs from the set, allowing early termination of jobs if they become irrelevant according to application logic.
|
||||
- Sidekiq::Batch#include?(jid) allows jobs to check if they are still
|
||||
relevant to a Batch and exit early if not.
|
||||
- Pro now requires 2.17.0
|
||||
|
||||
1.2.5
|
||||
|
|
Loading…
Reference in a new issue