Rescue : Connection refused – Unable to connect to Redis on localhost:6379

Have you verified redis-server is running? Please don’t ask me to dissect the following command, but in a terminal you can type: ps aux | grep redis You should then see something like: redis 13319 0.0 0.0 2884 1056 ? Ss 10:54 0:00 /usr/bin/redis-server /etc/redis/redis.conf If it’s not running, I recommend issuing the following command: … Read more

Programmatically get the number of jobs in a Resque queue

yes it’s quite easy, given you’re using the Resque gem: require ‘resque’ Resque.info will return a hash e.g/ => { :pending => 54338, :processed => 12772, :queues => 2, :workers => 0, :working => 0, :failed => 8761, :servers => [ [0] “redis://192.168.1.10:6379/0” ], :environment => “development” } So to get the failed job count, … Read more

Resque vs Sidekiq? [closed]

Resque: Pros: does not require thread safety (works with pretty much any gem out there); has no interpreter preference (you can use any ruby); Resque currently supports MRI 2.3.0 or later loads of plugins. Cons runs a process per worker (uses more memory); does not retry jobs (out of the box, anyway). Sidekiq: Pros runs … Read more

techhipbettruvabetnorabahisbahis forumu