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:
parent
6f1e0b04a7
commit
d285f19480
1 changed files with 2 additions and 0 deletions
|
@ -68,6 +68,8 @@ module Sidekiq
|
|||
Sidekiq.redis do |conn|
|
||||
# touch the connection pool so it is created before we
|
||||
# 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
|
||||
|
||||
# Before this point, the process is initializing with just the main thread.
|
||||
|
|
Loading…
Add table
Reference in a new issue