From 47ec731a3f85e38191c83d4e0a4c973b8ae002c1 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Fri, 28 Feb 2014 19:59:09 -0800 Subject: [PATCH] Note workers API change --- Upgrading.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Upgrading.md b/Upgrading.md index 81789714..8fc78234 100644 --- a/Upgrading.md +++ b/Upgrading.md @@ -6,10 +6,12 @@ changes a few data elements in Redis. To upgrade cleanly: * Upgrade to the latest Sidekiq 2.x and run it for a few weeks. `gem 'sidekiq', '< 3'` This is only needed if you have retries pending. -* Remove any usage of the following APIs: +* API changes: - `Sidekiq::Client.registered_workers` replaced by `Sidekiq::Workers.new` - `Sidekiq::Client.registered_queues` replaced by `Sidekiq::Queue.all` - `Sidekiq::Worker#retries_exhausted` replaced by `Sidekiq::Worker.sidekiq_retries_exhausted` + - `Sidekiq::Workers#each` has removed the third block argument `worker, msg, started_at` + since it was redundant with `msg['run_at']` * Redis-to-Go is no longer transparently activated on Heroku so as to not play favorites with any particular Redis service. You need to set a config option for your app: