Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to make Resque work

I'm trying to make Resque work with my project, but unfortunately it seems that for some reasons Resque is not able to write on Redis.

Redis seems to be configured correctly, I'm able to connect with redis-cli and issue commands, runs on port 6379 as configured inside my Rails 3.0.5 app. When I try to Resque enqueue something the job is queued, but it doesn't seem that something actually happens on Redis (0 clients connected inside my Redis logs). When I restart the console, the queue is empty, with no workers running.

Everything fails silently, I have nothing in my rails logs, nothing on the console, nothing if I start a worker, it just (obviously) doesn't find any job to perform.

https://gist.github.com/867620

Any suggestions on how to fix or debug this ?

like image 877
ngw Avatar asked Mar 13 '11 10:03

ngw


1 Answers

The problem was that I was including resque_spec in the bundle. Obviously, resque_spec was stubbing Resque.enqueue, making my mistake very stupid and very difficult to spot.

like image 159
ngw Avatar answered Oct 15 '22 18:10

ngw