nickelser / activejob-traffic_control

Rate limiting/job enabling for ActiveJob using distributed locks in Redis or Memcached.
305 stars 28 forks source link

Suo::LockClientError #11

Open dkdelosreyes opened 5 years ago

dkdelosreyes commented 5 years ago

Hi @nickelser

This error is happening on production only. Could this be a cause of missing this code below in the configs?

ActiveJob::TrafficControl.client = ConnectionPool.new(size: 5, timeout: 5) { Redis.new }

richpeck commented 5 years ago

Yes, I had that issue in Heroku and by placing that code into the app it works.

corymcdonald commented 4 years ago

Just had this same issue, if you don't have Redis running, or defined in your project then you will get this error. It would be nice if this error was more clear, i.e. CannotConnectError

elioncho commented 2 years ago

Documentation needs to tell that the line above is required.