From d994847ccaf39006abe0fce9f19848dd14522772 Mon Sep 17 00:00:00 2001 From: nick evans Date: Fri, 6 Feb 2026 19:02:34 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20Update=20README=20for=20old=20re?= =?UTF-8?q?dis=20gem?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This could simply be removed, but maybe someone who's in the middle of updating a _very_ old app will find it useful. Fixes #221. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e58bbcca..b19476e3 100644 --- a/README.md +++ b/README.md @@ -77,8 +77,11 @@ task "resque:pool:setup" do end ``` +### Old versions of the redis gem -For normal work with fresh resque and resque-scheduler gems add next lines in lib/rake/resque.rake +Very old versions of the redis gem (prior to v3.1.0, released 2014-06-06), did +not automatically disconnect and reconnect after forking. To safely use those +old versions of the redis gem, add the following to lib/rake/resque.rake: ```ruby task "resque:pool:setup" do @@ -88,6 +91,9 @@ task "resque:pool:setup" do end ``` +Note that the above lines will not work with the redis gem, since v5.0. But it +isn't needed, either! + ### Start the pool manager Then you can start the queues via: