Unable to complete Resque job

I am trying to make Resque work with my project, but unfortunately it seems that for some reason Resque is not able to write in Redis.

Redis seems to be configured correctly, I can connect to redis-cli and issue commands, it works on port 6379, as configured inside my Rails 3.0.5 application. When I try to execute the Resque enqueue, the task is queued, but it doesn't seem like something is actually happening in Redis (0 clients connected inside my Redis logs). When I restart the console, the queue is empty, without workers working.

Everything fails, I have nothing in my rail logs, nothing on the console, nothing, if I start working, it just (obviously) does not find any work to do.

https://gist.github.com/867620

Any suggestions for fixing or debugging?

+5
source share
1 answer

The problem was that I included resque_spec in the package. Obviously, resque_spec truncated Resque.enqueue, making my mistake very stupid and very hard to notice.

+11
source

All Articles