On 7/27/09 8:40 AM, Graham Dumpleton wrote:
>
>
> On Jul 27, 2:07 pm, Dave Forgac<tylerd...@gmail.com>  wrote:
>> I am trying to write an application that will allow a user to launch a
>> fairly long-running process (5-30 seconds). It should then allow the
>> user to check the output of the process as it is generated.  The
>> output will only be needed for the user's current session so nothing
>> needs to be stored long-term.  I have two questions regarding how to
>> accomplish this:
>>
>> 1. What is the best way to launch a background process such as this
>> with a Pylons controller?
>>
>> 2. What is the best way to get the output of the background process
>> back to the user?
>
> Often the better way of doing this is to run a separate persistent
> long running process which has an XML-RPC interface and have the web
> application communicate with the back end process using XML-RPC. This
> avoids all the mess that can often occur with forking off a web
> application process.

zc.async (see http://packages.python.org/zc.async/1.5.0/ ) might also be 
interesting.

Wichert.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to