News for hackers. Stuff that matters.
Re:Resque with Redis To Go by kgo on Wednesday July 28, 2010 @02:18PM (#1555136)
1. It's optional.

"rake environment resque:work" will give you access to the whole rails environment, so you can write normal rails code. But it of course uses a bunch of memory.

If you're doing something quick and dirty and don't need the rails model (sending out a password email or whatever), you can just run "rake resque:work" and avoid the overhead of the whole rails environment.

Re:Resque with Redis To Go by waratuman on Wednesday July 28, 2010 @02:29PM (#1555181)
The line `task "resque:setup" => :environment` in the rake file does the same thing. That way it will load the env on Heroku.
Re:Resque with Redis To Go by kgo on Wednesday July 28, 2010 @02:44PM (#1555223)
Yes, of course, I guess I was just trying to say that rails is optional, not required, and that resque is a pretty nice general purpose job queue.