From 336532c0dd53d0d1e57f4ae4454fae73c470c71b Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Wed, 31 Jan 2018 14:43:10 -0800 Subject: [PATCH] Prepare for Pro 4 --- Pro-4.0-Upgrade.md | 32 ++++++++++++++++++++++++++++++++ Pro-Changes.md | 16 ++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 Pro-4.0-Upgrade.md diff --git a/Pro-4.0-Upgrade.md b/Pro-4.0-Upgrade.md new file mode 100644 index 00000000..127e07c1 --- /dev/null +++ b/Pro-4.0-Upgrade.md @@ -0,0 +1,32 @@ +# Welcome to Sidekiq Pro 4.0! + +Sidekiq Pro 4.0 is designed to work with Sidekiq 5.0. + +## What's New + +* Batches now "die" if any of their jobs die. You can enumerate the set + of dead batches and their associated dead jobs. The success callback + for a dead batch will never fire unless these jobs are fixed. +```ruby +Sidekiq::Batch::DeadSet.new.each do |status| + status.dead? # => true + status.dead_jobs # => [...] +end +``` +* The older `reliable_fetch` and `timed_fetch` algorithms have been + removed. Only super\_fetch is available in 4.0. +* The statsd middleware has been tweaked to remove support for legacy, + pre-3.6.0 configuration. + +## Upgrade + +* Upgrade to the latest Sidekiq Pro 3.x. +```ruby +gem 'sidekiq-pro', '< 4' +``` +* Fix any deprecation warnings you see. +* Upgrade to 4.x. +```ruby +gem 'sidekiq-pro', '< 5' +``` + diff --git a/Pro-Changes.md b/Pro-Changes.md index 77c01ab5..49b05a59 100644 --- a/Pro-Changes.md +++ b/Pro-Changes.md @@ -4,6 +4,21 @@ Please see [http://sidekiq.org/](http://sidekiq.org/) for more details and how to buy. +HEAD +--------- + +- See the [Sidekiq Pro 4.0](Pro-4.0-Upgrade.md) release notes. + + +3.7.1 +--------- + +- Deprecate timed\_fetch. Switch to super\_fetch: +```ruby +config.super_fetch! +``` + + 3.7.0 --------- @@ -11,6 +26,7 @@ Please see [http://sidekiq.org/](http://sidekiq.org/) for more details and how t cases with regard to Sidekiq::Shutdown. This should greatly reduce the chances of seeing the long-standing "negative pending count" problem. [#3710] + 3.6.1 ---------