I need to run a background task which should last several hours. How can I do this in rails?
on 2009-01-08 09:58
on 2009-01-08 10:28
Hi, What sort of tasks do you intend to do? Database/ file system/ operating system oriented, appropriate approach can be decided depending on these - NAYAK
on 2009-01-08 11:05
Use the backgroundrb system. It scales better in the long run as you decide to do more stuff in the background and require better control. http://backgroundrb.rubyforge.org/
on 2009-01-08 11:07
Vishwanath Nayak wrote: > Hi, > > What sort of tasks do you intend to do? > Database/ file system/ operating system oriented, appropriate approach > can > be decided depending on these > > - NAYAK The task is building source code with gcc.
on 2009-01-08 11:16
> The task is building source code with gcc. take a look at the earlier mentioned backgrounDRb: http://backgroundrb.rubyforge.org/ [quote] BackgrounDRb is a Ruby job server and scheduler. Its main intent is to be used with Ruby on Rails applications for offloading long-running tasks. Since a Rails application blocks while serving a request it is best to move long-running tasks off into a background process that is divorced from http request/response cycle. [/quote]
on 2009-01-08 11:25
I second on it -NAYAK