I have a RoR app with background jobs using ever and sidekiq gems.
In the development environment, when I run sidekiq with a local redis instance (on the local host), the work continues to run without problems. But when I switch to a remote instance of redis (Heroku add-on) and restart sidekiq, it says that it started to process, but nothing happens and the workers are not doing any tasks.
Here is my config / schedule.rb (for each gem)
every 2.minutes do rake "crawler:crawl" end
Here are my /redis.rb initializers:
Sidekiq.configure_server do |config| config.redis = { :url => 'redis://user: pass@spinyfin.redistogo.com :9098/' } end Sidekiq.configure_client do |config| config.redis = { :url => 'redis://user: pass@spinyfin.redistogo.com :9098/' } end
If I comment on the contents in redis.rb and run a local instance of redis, jobs are processed normally. But when I use this remote instance of redis, it appears, and then nothing is processed:
2013-11-29T15:09:26Z 95156 TID-ov6y7e14o INFO: Booting Sidekiq 2.13.0 using redis://redistogo: user@spinyfin.redistogo.com :9098/ with options {} 2013-11-29T15:09:26Z 95156 INFO: Running in ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin11.4.2] 2013-11-29T15:09:26Z 95156 INFO: See LICENSE and the LGPL-3.0 for licensing details. 2013-11-29T15:09:26Z 95156 INFO: Starting processing, hit Ctrl-C to stop
source share