librelist archives

« back to archive

what does Resque.inline exactly does?

what does Resque.inline exactly does?

From:
Sachin Rai
Date:
2011-06-09 @ 11:28
By default, the Resque.inline is false.
What happens when I set Resque.inline = true?

Do I need to start redis-server and worker?

What I know is that we don't need to start any of these. But when I run the
specs with Resque.inline = true, the error is "Connection refused - Unable
to connect to Redis on localhost:6379"

Do I really need to start the redis-server?

Re: [resque] what does Resque.inline exactly does?

From:
Kevin Menard
Date:
2011-06-09 @ 16:37
Resque.inline runs your code synchronously.  You won't need a redis 
server to run the jobs, but if you use plugins that contact redis or you 
use the redis failure backend and your jobs raise an exception, then 
you'll need to run a redis server.  I run one specifically for tests 
that gets started by my test suite.  And I just flush the DB before each 
test is run.  It's incredibly fast and much more reliable than trying to 
mock or stub all that stuff.

-- 
Kevin

> ------------------------------------------------------------------------
>
> 	Sachin Rai <mailto:sachin@sprout-technology.com>
> June 9, 2011 7:28 AM
>
>
> By default, the Resque.inline is false.
> What happens when I set Resque.inline = true?
>
> Do I need to start redis-server and worker?
>
> What I know is that we don't need to start any of these. But when I 
> run the specs with Resque.inline = true, the error is "Connection 
> refused - Unable to connect to Redis on localhost:6379"
>
> Do I really need to start the redis-server?

Re: [resque] what does Resque.inline exactly does?

From:
Sachin Rai
Date:
2011-06-10 @ 03:49
could not decode message