How can I delete specific jobs from Resque queue without clearing the whole queue?

In resque’s sources (Job class) there’s such method, guess it’s what you need 🙂 # Removes a job from a queue. Expects a string queue name, a # string class name, and, optionally, args. # # Returns the number of jobs destroyed. # # If no args are provided, it will remove all jobs of … Read more

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)