1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Verify Redis 2.8+ on startup

This commit is contained in:
Mike Perham 2015-10-20 21:24:32 -07:00
parent 6f1e0b04a7
commit d285f19480

View file

@ -68,6 +68,8 @@ module Sidekiq
Sidekiq.redis do |conn| Sidekiq.redis do |conn|
# touch the connection pool so it is created before we # touch the connection pool so it is created before we
# fire startup and start multithreading. # fire startup and start multithreading.
ver = conn.info['redis_version']
raise "Oops, you are using Redis v#{ver}, Sidekiq requires Redis v2.8.0 or greater" if ver < '2.8'
end end
# Before this point, the process is initializing with just the main thread. # Before this point, the process is initializing with just the main thread.