How to run a background task in rails

I need to run a background task which should last several hours. How can
I do this in rails?

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

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/

The task is building source code with gcc.
take a look at the earlier mentioned backgrounDRb:
http://backgroundrb.rubyforge.org/

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.

I second on it

-NAYAK