diff --git a/config/initializers/activejob_status.rb b/config/initializers/activejob_status.rb index d28f74c26..3acb79fd5 100644 --- a/config/initializers/activejob_status.rb +++ b/config/initializers/activejob_status.rb @@ -1,5 +1,10 @@ # Sidekiq and Rails communicate via redis, so we should always use that. -ActiveJob::Status.store = :redis_cache_store, {url: ENV.fetch("REDIS_URL", nil)} +ActiveJob::Status.store = :redis_cache_store, { + url: ENV.fetch("REDIS_URL", nil), + pool: { + size: ActiveRecord::Base.connection.pool.size + } +} ActiveJob::Status.options = { includes: %i[status serialized_job exception],