activejob-locking
activejob-locking copied to clipboard
Cannot pass URL connection string to SuoRedis adapter
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'] } }
This is the same issue I was dealing with here: https://github.com/cfis/activejob-locking/issues/3
Sorry for late response. Can you write up a patch?