Skip to content

Commit b5e16e5

Browse files
committed
📚 Update README for old redis gem
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.
1 parent 8dfddde commit b5e16e5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,11 @@ task "resque:pool:setup" do
7777
end
7878
```
7979

80+
### Old versions of the redis gem
8081

81-
For normal work with fresh resque and resque-scheduler gems add next lines in lib/rake/resque.rake
82+
Very old versions of the redis gem (prior to v3.1.0, released 2014-06-06), did
83+
not automatically disconnect and reconnect after forking. To safely use those
84+
old versions of the redis gem, add the following to lib/rake/resque.rake:
8285

8386
```ruby
8487
task "resque:pool:setup" do
@@ -88,6 +91,9 @@ task "resque:pool:setup" do
8891
end
8992
```
9093

94+
Note that the above lines will not work with the redis gem, since v5.0. But it
95+
isn't needed, either!
96+
9197
### Start the pool manager
9298

9399
Then you can start the queues via:

0 commit comments

Comments
 (0)