librelist archives

« back to archive

How to start resque workers on jruby

How to start resque workers on jruby

From:
Larry Zhao
Date:
2012-07-02 @ 10:19
Hi, Guys, 

Sorry for this rookie question, but I really stuck here. I would like to 
use resque in my project and my project is running on jruby. I see in the 
resque README that it supports jruby. 

And I tried to start resque worker with: PIDFILE=./resque.pid 
BACKGROUND=yes QUEUE=* jruby -S rake environment resque:work, I got the 
error: fork is not available on this platform

How could I spawn workers on jruby? 


Cheers,

--- 
Larry Zhao

Re: [resque] How to start resque workers on jruby

From:
Farid Aliev
Date:
2012-07-02 @ 16:38
Try using sidekiq: http://mperham.github.com/sidekiq/

On Mon, Jul 2, 2012 at 3:19 AM, Larry Zhao <thehiddendepth@gmail.com> wrote:

>  Hi, Guys,
>
> Sorry for this rookie question, but I really stuck here. I would like to
> use resque in my project and my project is running on jruby. I see in the
> resque README that it supports jruby.
>
> And I tried to start resque worker with: PIDFILE=./resque.pid
> BACKGROUND=yes QUEUE=* jruby -S rake environment resque:work, I got the
> error: fork is not available on this platform
>
> How could I spawn workers on jruby?
>
>
> Cheers,
>
> ---
> Larry Zhao
>
>


-- 
Farid Aliev.
cell: (415) 225 7861