Re: Rails way to do long running tasks

Jiten Bhagat
2009-06-13T21:12:31Z

I would highly recommend using delayed_job (
http://github.com/tobi/delayed_job/tree/master). We''ve recently
integrated
this into the BioCatalogue (http://www.biocatalogue.org) to great effect.
This is what GitHub use I believe (http://github.com/blog/197-the-new-queue
).

Useful blog post that walks you through setting up delayed_job -
http://www.magnionlabs.com/2009/2/28/background-job-processing-in-rails-with-delayed_job

Useful FAQ: http://wiki.github.com/tobi/delayed_job

Examples: http://github.com/igal/rubyqueues/tree/master/delayed_job_eg/

Comparisons:
http://github.com/igal/rubyqueues/raw/802998678c012ed17b27324a41a4cd42a377a678/comparison.html

Hope that helps.

Jits


2009/6/13 Chris <chrisnow7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

>
> Thanks a lot for the pointers and the great suggestions.
>
> I really do find BackgrounDrb too heavy for my implementation - and
> think the gems you described make sense.
>
> Spawn plugin and Javan-whenever is great.  And there is a Railscast
> that is really good in explaining:
> http://railscasts.com/episodes/164-cron-in-ruby
>
>
> On Jun 8, 7:35 am, Sandip Ransing
<san2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > @Bharat,
> >
> > Can you give brief why to use javan instead backgroundrb ?
> > As, i am using backgroundrb for heavy upload duties and it works fine
for
> > me.
> >
> > - Sandip R~
> >
> > On Sun, Jun 7, 2009 at 11:26 PM, Bharat
<bcrupa...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:
> >
> > > Two pointers from personal experience:
> >
> > > 1.  Don''t use backgroundrb for asynchronous processing
> > > 2.  Do use javan-whenever to automate your cron jobs (available
on
> > > Github)
> >
> > > Bharat
> >
> > --
> > Ruby on Rails Developerhttp://sandip.sosblog.comhttp://
> funonrails.wordpress.comwww.joshsoftware.com
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---