activejob-locking icon indicating copy to clipboard operation
activejob-locking copied to clipboard

Cannot pass URL connection string to SuoRedis adapter

Open gburgett opened this issue 5 years ago • 2 comments

Heroku gives us a Redis connection string that looks kinda like this: redis://h:[email protected]:6379

Unfortunately the SuoRedis adapter doesn't support passing AdapterOptions, so we can't do this:

ActiveJob::Locking.options.adapter = ActiveJob::Locking::Adapters::SuoRedis
ActiveJob::Locking.options.adapter_options = { connection: { url: ENV['REDIS_URL'] } }

gburgett avatar Sep 11 '19 19:09 gburgett

This is the same issue I was dealing with here: https://github.com/cfis/activejob-locking/issues/3

bkroeker avatar Sep 11 '19 22:09 bkroeker

Sorry for late response. Can you write up a patch?

cfis avatar Oct 06 '19 19:10 cfis