Re: Rails way to do long running tasks

Matt Jones
2009-06-07T17:01:13Z

For emails, the simplest way is to set up a local MTA (postfix, for
instance) and send the mail to that. The MTA takes care of the hard
part delivering the mail as needed.

For more general things, there are some gems that let you set up cron-
like tasks, or you can just call a rake task from plain old cron.

--Matt Jones


On Jun 6, 8:23 pm, Chris
<chrisn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Hello Rails community,
>
>   I would like to get some advices - I am writing a web application
> that will be sending some emails and execute other long running tasks.
>
>   Some of these tasks may take some time and I do not want the user
> experience to be impacted. I would appreciate any pointers on advices
> on these areas:
>
>    *   how to send emails without making the user wait
>    *   how to execute long running tasks
>    *   The best way to do periodic cron jobs in Rails
>
> Thank you for your help in advance.
>
> Chris