Please see http://sidekiq.org/pro for more details and how to buy.
- Display Batch callback data on the Batch details page. [#2347]
- Fix incompatibility with Pro Web and Rack middleware. [#2344] Thank you to Jason Clark for the tip on how to fix it.
- Multiple Web UIs can now run in the same process. [#2267] If you have multiple Redis shards, you can mount UIs for all in the same process:
POOL1 = ConnectionPool.new { Redis.new(:url => "redis://localhost:6379/0") }
POOL2 = ConnectionPool.new { Redis.new(:url => "redis://localhost:6378/0") }
mount Sidekiq::Pro::Web => '/sidekiq' # default
mount Sidekiq::Pro::Web.with(redis_pool: POOL1), at: '/sidekiq1', as: 'sidekiq1' # shard1
mount Sidekiq::Pro::Web.with(redis_pool: POOL2), at: '/sidekiq2', as: 'sidekiq2' # shard2
- SECURITY Fix batch XSS in error data. Thanks to moneybird.com for reporting the issue.
- Add
batch.callback_queue
so batch callbacks can use a higher priority queue than jobs. [#2200] - Gracefully recover if someone runs
SCRIPT FLUSH
on Redis. [#2240] - Ignore errors when attempting
bulk_requeue
, allowing clean shutdown
- See the Upgrade Notes for detailed notes.
- As of 1/1/2015, Sidekiq Pro is hosted on a new dedicated server. Happy new year and let's hope for 100% uptime!
- Fix bug in reliable_fetch where jobs could be duplicated if a Sidekiq process crashed and you were using weighted queues. [#2120]
- SECURITY Fix XSS in batch description, thanks to intercom.io for reporting the issue. If you don't use batch descriptions, you don't need the fix.
- Add new expiring jobs feature [#1982]
- Show batch expiration on Batch details page [#1981]
- Add '$' batch success token to the pubsub support. [#1953]
- Fix race condition where Batches can complete before they have been fully defined or only half-defined. Requires Sidekiq 3.2.3. [#1919]
- Quick release to verify #1919
- Fix job filtering within the Dead tab.
- Add APIs and wiki documentation for invalidating jobs within a batch.
- Awesome ANSI art startup banner!
- Batch callbacks should use the same queue as the associated jobs.
- DEPRECATION Use
Batch#on(:complete)
instead ofBatch#notify
. The specific Campfire, HipChat, email and other notification schemes will be removed in 2.0.0. - Remove batch from UI when successful. [#1745]
- Convert batch callbacks to be asynchronous jobs for error handling [#1744]
- Fix for paused queues being processed for a few seconds when starting a new Sidekiq process.
- Add a 5 sec delay when starting reliable fetch on Heroku to minimize any duplicate job processing with another process shutting down.
- Add ability to pause reliable queues via API.
q = Sidekiq::Queue.new("critical")
q.pause!
q.paused? # => true
q.unpause!
Sidekiq polls Redis every 10 seconds for paused queues so pausing will take a few seconds to take effect.
- Compatible with Sidekiq 3.
- Due to a breaking API change in Sidekiq 3.0, this version is limited to Sidekiq 2.x.
- Fix issue on Heroku where reliable fetch could orphan jobs [#1573]
- Reverse sorting of Batches in Web UI [#1098]
- Refactoring for Sidekiq 3.0, Pro now requires Sidekiq 2.17.5
- Tolerate expired Batches in the web UI.
- Fix 100% CPU usage when using weighted queues and reliable fetch.
- Add batch progress bar to batch detail page. [#1398]
- Fix race condition in initializing Lua scripts
- Default batch expiration has been extended to 3 days, from 1 day previously.
- Batches now sort in the Web UI according to expiry time, not creation time.
- Add user-configurable batch expiry. If your batches might take longer than 72 hours to process, you can extend the expiration date.
b = Sidekiq::Batch.new
b.expires_in 5.days
...
- Lazy load Lua scripts so a Redis connection is not required on bootup.
- Fix a gemspec packaging issue which broke the Batch UI.
Thanks to @jonhyman for his contributions to this Sidekiq Pro release.
This release includes new functionality based on the SCAN command newly added to Redis 2.8. Pro still works with Redis 2.4 but some functionality will be unavailable.
- Job Filtering in the Web UI! You can now filter retries and scheduled jobs in the Web UI so you only see the jobs relevant to your needs. Queues cannot be filtered; Redis does not provide the same SCAN operation on the LIST type. 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. Redis 2.8
Sidekiq::RetrySet.new.scan("Warehouse::OrderShip") do |job|
job.delete
end
- 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.
- Sidekiq::SortedSet#find_job(jid) now uses server-side Lua if possible Redis 2.6 [jonhyman]
- The statsd integration now sets global job counts:
jobs.count
jobs.success
jobs.failure
- Change shutdown logic to push leftover jobs in the private queue back into the public queue when shutting down with Reliable Fetch. This allows the safe decommission of a Sidekiq Pro process when autoscaling. [jonhyman]
- Add support for weighted random fetching with Reliable Fetch [jonhyman]
- Pro now requires Sidekiq 2.17.0
- Convert Batch UI to use Sidekiq 2.16's support for extension localization.
- Update reliable_push to work with Sidekiq::Client refactoring in 2.16
- Pro now requires Sidekiq 2.16.0
- Convert Batch UI to Bootstrap 3
- Pro now requires Sidekiq 2.15.0
- Add Sidekiq::Batch::Status#delete [#1205]
- Pro now requires Sidekiq 2.14.0
- Fix bad exception handling in batch callbacks [#1134]
- Convert Batch UI to ERB
- Problem with reliable fetch which could lead to lost jobs when Sidekiq is shut down normally. Thanks to MikaelAmborn for the report. [#1109]
- Forgot to push paging code necessary for
delete_job
performance.
- LEAK Fix batch key which didn't expire in Redis. Keys match /b-[a-f0-9]{16}-pending/, e.g. "b-4f55163ddba10aa0-pending" [#1057]
- Reliable fetch now supports multiple queues, using the algorithm spec'd by @jackrg [#1102]
- Fix issue with reliable_push where it didn't return the JID for a pushed job when sending previously cached jobs to Redis.
- Add fast Sidekiq::Queue#delete_job(jid) API which leverages Lua so job lookup is 100% server-side. Benchmark vs Sidekiq's Job#delete API. Redis 2.6
Sidekiq Pro API
0.030000 0.020000 0.050000 ( 1.640659)
Sidekiq API
17.250000 2.220000 19.470000 ( 22.193300)
- Add fast Sidekiq::Queue#delete_by_class(klass) API to remove all jobs of a given type. Uses server-side Lua for performance. Redis 2.6
- New
sidekiq/pro/reliable_push
which makes Sidekiq::Client resiliant to Redis network failures. [#793] - Move
sidekiq/reliable_fetch
tosidekiq/pro/reliable_fetch
- Sidekiq Pro changelog moved to mperham/sidekiq for public visibility.
- Add new Rack endpoint for easy polling of batch status via JavaScript. See
sidekiq/rack/batch_status
- Fix bad /batches path in Web UI
- Fix Sinatra conflict with sidekiq-failures
- Fix issue with lifecycle notifications not firing.
- Update due to Sidekiq API changes.
- Rearchitect Sidekiq's Fetch code to support different fetch strategies. Add a ReliableFetch strategy which works with Redis' RPOPLPUSH to ensure we don't lose messages, even when the Sidekiq process crashes unexpectedly. [sidekiq#607]
- Reimplement existing notifications using batch on_complete events.
- Rejigger batch callback notifications.
- Add new Batch 'callback' notification support, for in-process notification.
- Symbolize option keys passed to Pony [sidekiq#603]
- Batch no longer requires the Web UI since Web UI usage is optional. You must require is manually in your Web process:
require 'sidekiq/web'
require 'sidekiq/batch/web'
mount Sidekiq::Web => '/sidekiq'
- Worker instances can access the associated jid and bid via simple accessors.
- Batches can now be modified while being processed so, e.g. a batch job can add additional jobs to its own batch.
def perform(...)
batch = Sidekiq::Batch.new(bid) # instantiate batch associated with this job
batch.jobs do
SomeWorker.perform_async # add another job
end
end
- Save error backtraces in batch's failure info for display in Web UI.
- Clean up email notification a bit.
- Add optional batch description
- Mutable batches. Batches can now be modified to add additional jobs at runtime. Example would be a batch job which needs to create more jobs based on the data it is processing.
batch = Sidekiq::Batch.new(bid)
batch.jobs do
# define more jobs here
end
- Fix issues with symbols vs strings in option hashes
- Webhook notification support
- Redis pubsub
- Email polish
- Batches
- Notifications
- Statsd middleware