On 23 Feb 2009, at 11:44, Ankit Parekh wrote:
> > thanks for your reply but i dont want to run something like a cron job > or nething. > > Since my method is very long i want it to run in background. So that > the > user dont need to wait on that page while the process is going on. > > Is there something where i can define that a particular method should > run in background. > The way you do that reliably is to spawn another process to handle it. You can do your thing in a thread but that pretty much requires that you're using a thread safe version of rails and has limitations given ruby's threading (eg your thread can block the whole mongrel) Fred --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---