2013-05-06 23:44:26 -04:00
Sidekiq Pro Changelog
=======================
2015-09-01 12:20:28 -04:00
Please see [http://sidekiq.org/ ](http://sidekiq.org/ ) for more details and how to buy.
2013-05-07 00:17:44 -04:00
2016-04-05 16:27:10 -04:00
3.2.1
---------
- timed\_fetch now works with namespaces. [ryansch]
2016-03-23 16:24:07 -04:00
3.2.0
---------
- Fixed detection of missing batches, `NoSuchBatch` should be raised
properly now if `Sidekiq::Batch.new(bid)` is called on a batch no
longer in Redis.
- Remove support for Pro 1.x format batches. This version will no
longer seamlessly process batches created with Sidekiq Pro 1.x.
As always, upgrade one major version at a time to ensure a smooth
transition.
2016-04-01 00:26:21 -04:00
- Fix edge case where a parent batch could expire before a child batch
was finished processing, leading to missing batches [#2889]
2016-03-23 16:24:07 -04:00
2016-04-01 09:42:16 -04:00
2.1.5
---------
- Fix edge case where a parent batch could expire before a child batch
was finished processing, leading to missing batches [#2889]
2016-03-16 12:33:41 -04:00
3.1.0
---------
- New container-friendly fetch algorithm: `timed_fetch` . See the
[wiki documentation ](https://github.com/mperham/sidekiq/wiki/Pro-Reliability-Server )
for trade offs between the two reliability options. You should
2016-03-23 16:24:07 -04:00
use this if you are on Heroku, Docker, Amazon ECS or EBS or
another container-based system.
2016-03-16 12:33:41 -04:00
2016-02-29 12:16:47 -05:00
3.0.6
---------
- Fix race condition on reliable fetch shutdown
2016-02-08 16:45:54 -05:00
3.0.5
---------
- Statsd metrics now account for ActiveJob class names
- Allow reliable fetch internals to be overridden [jonhyman]
2016-02-04 17:18:21 -05:00
3.0.4
---------
- Queue pausing no longer requires reliable fetch. [#2786]
2016-02-01 13:29:31 -05:00
3.0.3, 2.1.4
------------
- Convert Lua-based `Sidekiq::Queue#delete_by_class` to Ruby-based, to
avoid O(N^2) performance and possible Redis failure. [#2806]
2016-01-28 16:31:25 -05:00
3.0.2
2016-01-21 12:22:29 -05:00
-----------
- Make job registration with batch part of the atomic push so batch
metadata can't get out of sync with the job data. [#2714]
2016-01-08 15:32:36 -05:00
3.0.1
-----------
- Remove a number of Redis version checks since we can assume 2.8+ now.
- Fix expiring jobs client middleware not loaded on server
2015-12-09 11:51:11 -05:00
3.0.0
2015-10-29 12:01:24 -04:00
-----------
- See the [Pro 3.0 release notes ](Pro-3.0-Upgrade.md ).
2015-11-03 16:41:19 -05:00
2.1.3
-----------
- Don't enable strict priority if using weighted queueing like `-q a,1 -q b,1`
- Safer JSON mangling in Lua [#2639]
2015-10-29 12:01:24 -04:00
2.1.2
-----------
- Lock Sidekiq Pro 2.x to Sidekiq 3.x.
2015-10-13 12:11:50 -04:00
2.1.1
-----------
- Make ShardSet lazier so Redis can first be initialized at startup. [#2603]
2015-10-05 16:26:29 -04:00
2.1.0
2015-09-11 14:09:57 -04:00
-----------
- Explicit support for sharding batches. You list your Redis shards and
Sidekiq Pro will randomly spread batches across the shards. The BID
will indicate which shard contains the batch data. Jobs within a
batch may be spread across all shards too. [#2548, jonhyman]
2015-09-25 16:09:46 -04:00
- Officially deprecate Sidekiq::Notifications code. Notifications have
been undocumented for months now. [#2575]
2015-09-11 14:09:57 -04:00
2015-08-07 15:00:17 -04:00
2.0.8
-----------
- Fix reliable scheduler mangling large numeric arguments. Lua's CJSON
library cannot accurately encode numbers larger than 14 digits! [#2478]
2015-07-25 11:27:35 -04:00
2.0.7
-----------
- Optimize delete of enormous batches (100,000s of jobs) [#2458]
2015-07-17 11:51:46 -04:00
2.0.6, 1.9.3
--------------
- CSRF protection in Sidekiq 3.4.2 broke job filtering in the Web UI [#2442]
- Sidekiq Pro 1.x is now limited to Sidekiq < 3.5.0.
2015-07-15 12:32:01 -04:00
2.0.5
2015-06-30 14:28:17 -04:00
-----------
- Atomic scheduler now sets `enqueued_at` [#2414]
2015-07-14 01:39:05 -04:00
- Batches now account for jobs which are stopped by client middleware [#2406]
2015-07-15 12:31:42 -04:00
- Ignore redundant calls to `Sidekiq::Client.reliable_push!` [#2408]
2015-06-30 14:28:17 -04:00
2015-06-26 17:03:59 -04:00
2.0.4
2015-06-10 15:10:34 -04:00
-----------
2015-06-26 17:03:59 -04:00
- Reliable push now supports sharding [#2409]
2015-06-10 15:10:34 -04:00
- Reliable push now only catches Redis exceptions [#2307]
2015-05-13 13:58:34 -04:00
2.0.3
-----------
- 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.
2015-04-02 17:19:22 -04:00
2.0.2
-----------
- 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:
```ruby
POOL1 = ConnectionPool.new { Redis.new(:url => "redis://localhost:6379/0") }
POOL2 = ConnectionPool.new { Redis.new(:url => "redis://localhost:6378/0") }
2015-05-13 13:58:34 -04:00
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
2015-04-02 17:19:22 -04:00
```
2015-04-29 17:12:32 -04:00
- **SECURITY** Fix batch XSS in error data. Thanks to moneybird.com for
reporting the issue.
2015-01-10 01:22:03 -05:00
2015-03-14 23:55:09 -04:00
2.0.1
-----------
- Add `batch.callback_queue` so batch callbacks can use a higher
priority queue than jobs. [#2200]
2015-03-18 12:23:42 -04:00
- Gracefully recover if someone runs `SCRIPT FLUSH` on Redis. [#2240]
- Ignore errors when attempting `bulk_requeue` , allowing clean shutdown
2015-03-14 23:55:09 -04:00
2015-02-18 11:30:31 -05:00
2.0.0
2015-01-10 01:22:03 -05:00
-----------
2015-01-29 14:39:41 -05:00
- See [the Upgrade Notes ](Pro-2.0-Upgrade.md ) for detailed notes.
2015-01-10 01:22:03 -05:00
2015-01-07 12:49:53 -05:00
1.9.2
-----------
2015-01-07 14:14:59 -05:00
- As of 1/1/2015, Sidekiq Pro is hosted on a new dedicated server.
Happy new year and let's hope for 100% uptime!
2015-01-07 12:49:53 -05:00
- Fix bug in reliable\_fetch where jobs could be duplicated if a Sidekiq
process crashed and you were using weighted queues. [#2120]
2014-10-14 15:22:11 -04:00
1.9.1
-----------
- **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.
2014-10-06 17:29:26 -04:00
1.9.0
2014-09-17 13:39:22 -04:00
-----------
2014-10-03 16:43:25 -04:00
- Add new expiring jobs feature [#1982]
- Show batch expiration on Batch details page [#1981]
2014-09-17 13:39:22 -04:00
- Add '$' batch success token to the pubsub support. [#1953]
2014-08-31 23:14:22 -04:00
1.8.0
-----------
2014-09-07 11:46:57 -04:00
- Fix race condition where Batches can complete
2014-08-31 23:14:22 -04:00
before they have been fully defined or only half-defined. Requires
Sidekiq 3.2.3. [#1919]
2014-08-31 23:27:30 -04:00
1.7.6
-----------
- Quick release to verify #1919
2014-08-07 23:54:10 -04:00
1.7.5
-----------
- Fix job filtering within the Dead tab.
2014-08-11 13:40:01 -04:00
- Add APIs and wiki documentation for invalidating jobs within a batch.
2014-08-07 23:54:10 -04:00
2014-06-16 16:49:32 -04:00
1.7.4
-----------
- Awesome ANSI art startup banner!
2014-06-01 16:21:05 -04:00
1.7.3
-----------
- Batch callbacks should use the same queue as the associated jobs.
2014-05-31 14:59:38 -04:00
1.7.2
2014-05-31 00:19:38 -04:00
-----------
- **DEPRECATION** Use `Batch#on(:complete)` instead of `Batch#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]
2014-05-15 00:20:41 -04:00
1.7.1
-----------
- 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.
2014-04-17 23:53:03 -04:00
1.7.0
-----------
- Add ability to pause reliable queues via API.
```ruby
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.
2014-03-28 11:25:40 -04:00
1.6.0
2014-03-27 00:36:07 -04:00
-----------
- Compatible with Sidekiq 3.
1.5.1
-----------
- Due to a breaking API change in Sidekiq 3.0, this version is limited
to Sidekiq 2.x.
2014-03-20 22:12:58 -04:00
1.5.0
-----------
- Fix issue on Heroku where reliable fetch could orphan jobs [#1573]
2014-02-15 15:56:27 -05:00
1.4.3
2014-02-01 16:54:07 -05:00
-----------
- Reverse sorting of Batches in Web UI [#1098]
2014-02-15 15:56:27 -05:00
- Refactoring for Sidekiq 3.0, Pro now requires Sidekiq 2.17.5
2014-02-01 16:54:07 -05:00
2014-01-21 23:42:39 -05:00
1.4.2
2014-01-20 18:05:16 -05:00
-----------
- Tolerate expired Batches in the web UI.
- Fix 100% CPU usage when using weighted queues and reliable fetch.
2014-01-03 19:13:52 -05:00
1.4.1
2013-12-19 00:22:20 -05:00
-----------
- Add batch progress bar to batch detail page. [#1398]
2014-01-03 19:13:52 -05:00
- Fix race condition in initializing Lua scripts
2013-12-19 00:22:20 -05:00
2013-12-15 17:22:04 -05:00
1.4.0
2013-12-07 16:51:13 -05:00
-----------
- Default batch expiration has been extended to 3 days, from 1 day previously.
2013-12-07 23:37:34 -05:00
- Batches now sort in the Web UI according to expiry time, not creation time.
2013-12-07 16:51:13 -05:00
- Add user-configurable batch expiry. If your batches might take longer
than 72 hours to process, you can extend the expiration date.
2013-12-07 23:37:34 -05:00
2013-12-07 16:51:13 -05:00
```ruby
b = Sidekiq::Batch.new
b.expires_in 5.days
...
```
2013-11-29 13:45:49 -05:00
1.3.2
-----------
- Lazy load Lua scripts so a Redis connection is not required on bootup.
2013-11-28 18:39:31 -05:00
1.3.1
-----------
- Fix a gemspec packaging issue which broke the Batch UI.
2013-11-24 17:15:05 -05:00
1.3.0
2013-11-07 10:57:34 -05:00
-----------
2013-11-23 15:40:39 -05:00
Thanks to @jonhyman for his contributions to this Sidekiq Pro release.
2013-11-17 16:39:52 -05:00
2013-11-23 15:57:31 -05:00
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.
2013-11-10 15:39:14 -05:00
- 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.
2013-11-24 17:15:05 -05:00
**Redis 2.8**
2013-11-26 00:36:48 -05:00
![Filtering ](https://f.cloud.github.com/assets/2911/1619465/f47529f2-5657-11e3-8cd1-33899eb72aad.png )
2013-11-10 15:39:14 -05:00
- 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
2013-11-11 00:22:50 -05:00
will be **MUCH** faster than standard iteration using each.
2013-11-24 17:15:05 -05:00
**Redis 2.8**
2013-11-10 15:39:14 -05:00
```ruby
2013-11-23 15:40:39 -05:00
Sidekiq::RetrySet.new.scan("Warehouse::OrderShip") do |job|
job.delete
2013-11-10 15:39:14 -05:00
end
```
2013-11-23 15:52:41 -05:00
2013-11-07 10:57:34 -05:00
- 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.
2013-11-11 00:22:50 -05:00
- 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.
2013-11-28 18:52:07 -05:00
- Sidekiq::SortedSet#find\_job(jid) now uses server-side Lua if possible **Redis 2.6** [jonhyman]
2013-11-22 13:34:59 -05:00
- The statsd integration now sets global job counts:
2013-11-23 15:40:39 -05:00
```ruby
2013-11-22 13:34:59 -05:00
jobs.count
jobs.success
jobs.failure
2013-11-23 15:40:39 -05:00
```
2013-11-23 15:52:41 -05:00
2013-11-23 15:40:39 -05:00
- Change shutdown logic to push leftover jobs in the private queue back
into the public queue when shutting down with Reliable Fetch. This
2013-11-23 15:57:31 -05:00
allows the safe decommission of a Sidekiq Pro process when autoscaling. [jonhyman]
2013-11-28 18:52:07 -05:00
- Add support for weighted random fetching with Reliable Fetch [jonhyman]
2013-11-23 15:40:39 -05:00
- Pro now requires Sidekiq 2.17.0
2013-11-07 10:57:34 -05:00
2013-10-21 16:45:11 -04:00
1.2.5
-----------
2013-11-03 13:07:35 -05:00
- 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
2013-10-21 16:45:11 -04:00
- Pro now requires Sidekiq 2.16.0
2013-10-03 23:52:36 -04:00
1.2.4
-----------
- Convert Batch UI to Bootstrap 3
- Pro now requires Sidekiq 2.15.0
- Add Sidekiq::Batch::Status#delete [#1205]
2013-08-25 16:41:21 -04:00
1.2.3
-----------
- Pro now requires Sidekiq 2.14.0
- Fix bad exception handling in batch callbacks [#1134]
- Convert Batch UI to ERB
2013-08-17 15:52:51 -04:00
1.2.2
-----------
- Problem with reliable fetch which could lead to lost jobs when Sidekiq
is shut down normally. Thanks to MikaelAmborn for the report. [#1109]
2013-08-11 23:35:37 -04:00
1.2.1
-----------
- Forgot to push paging code necessary for `delete_job` performance.
2013-08-10 15:51:23 -04:00
1.2.0
2013-07-27 19:16:25 -04:00
-----------
2013-08-10 15:51:23 -04:00
- **LEAK** Fix batch key which didn't expire in Redis. Keys match
2013-08-07 16:45:08 -04:00
/b-[a-f0-9]{16}-pending/, e.g. "b-4f55163ddba10aa0-pending" [#1057]
2013-08-10 15:51:23 -04:00
- **Reliable fetch now supports multiple queues**, using the algorithm spec'd
by @jackrg [#1102]
2013-07-27 19:16:25 -04:00
- Fix issue with reliable\_push where it didn't return the JID for a pushed
job when sending previously cached jobs to Redis.
2013-08-10 15:51:23 -04:00
- Add fast Sidekiq::Queue#delete\_job(jid) API which leverages Lua so job lookup is
2013-11-24 17:15:05 -05:00
100% server-side. Benchmark vs Sidekiq's Job#delete API. **Redis 2.6**
2013-07-28 19:11:36 -04:00
```
Sidekiq Pro API
0.030000 0.020000 0.050000 ( 1.640659)
Sidekiq API
17.250000 2.220000 19.470000 ( 22.193300)
```
2013-07-27 19:16:25 -04:00
2013-08-07 16:45:08 -04:00
- Add fast Sidekiq::Queue#delete\_by\_class(klass) API to remove all
2013-11-24 17:15:05 -05:00
jobs of a given type. Uses server-side Lua for performance. **Redis 2.6**
2013-07-27 19:16:25 -04:00
2013-05-25 22:58:27 -04:00
1.1.0
2013-05-08 23:16:03 -04:00
-----------
- New `sidekiq/pro/reliable_push` which makes Sidekiq::Client resiliant
to Redis network failures. [#793]
- Move `sidekiq/reliable_fetch` to `sidekiq/pro/reliable_fetch`
2013-05-06 23:44:26 -04:00
1.0.0
-----------
- 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`
0.9.3
-----------
- Fix bad /batches path in Web UI
- Fix Sinatra conflict with sidekiq-failures
0.9.2
-----------
- Fix issue with lifecycle notifications not firing.
0.9.1
-----------
- Update due to Sidekiq API changes.
0.9.0
-----------
- 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. [mperham/sidekiq#607]
0.8.2
-----------
- Reimplement existing notifications using batch on_complete events.
0.8.1
-----------
- Rejigger batch callback notifications.
0.8.0
-----------
- Add new Batch 'callback' notification support, for in-process
notification.
- Symbolize option keys passed to Pony [mperham/sidekiq#603]
- Batch no longer requires the Web UI since Web UI usage is optional.
You must require is manually in your Web process:
```ruby
require 'sidekiq/web'
require 'sidekiq/batch/web'
mount Sidekiq::Web => '/sidekiq'
```
0.7.1
-----------
- 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.
```ruby
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.
0.7.0
-----------
- 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.
```ruby
batch = Sidekiq::Batch.new(bid)
batch.jobs do
# define more jobs here
end
```
- Fix issues with symbols vs strings in option hashes
0.6.1
-----------
- Webhook notification support
0.6
-----------
- Redis pubsub
- Email polish
0.5
-----------
- Batches
- Notifications
- Statsd middleware