gitlab-org--gitlab-foss/config/initializers/7_redis.rb
Jacob Vosmaer 52ee85e7bf Initialize Redis pool in single-threaded context
This side-steps the need for mutexes and whatnot.
2016-09-30 12:27:43 +02:00

3 lines
127 B
Ruby

# Make sure we initialize a Redis connection pool before Sidekiq starts
# multi-threaded execution.
Gitlab::Redis.with { nil }