> Issue/Concern #1: In Windows the link is clicked and the task runs in > the background (no waiting or delay exists). This is what it should be > doing. However, in linux, the page delays as it's running the task. If > the task is long it does not appear to run in the background so it > eventually errors out, yet the task continues to run.
I figured out why this was happening only on my production server and not on my development one. The issue was with Phusion Passenger not having the following set: PassengerUseGlobalQueue on Without the global queue on, it couldn't process long running background tasks. Now that it's set, issue/concern #1 is fixed. So, I'm now able to run all manual user run tasks fine from the view using the code I supplied above. However, I'm still trying to figure out how to have the view become updated as the background process runs. I'm thinking of different ways to implement it but none seem to feel very rails like so I'm still interested in hearing possible solutions. The current solution: Click manual user run task from view. Rake task processes in the background and writes to a log file. Click link to read results. Results are read from the log file and shown in the view. The envisioned solution: Click manual user run task from view. Rake task processes in the background. Results are updated every 10 seconds in the view. I hope that helps. My example code is located here: http://gist.github.com/575243 Thanks, -- Posted via http://www.ruby-forum.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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

