[Zope3-dev] Long running processes

Peter Mayne PeterMayne at ap.spherion.com
Fri Oct 8 00:01:26 EDT 2004


In my IMDB application, I upload data which may take a long time (many 
minutes) to process. Instead of having the client just sitting and 
waiting for the processing to finish, I'd like to have the page refresh 
every few minutes and display 10% finished, 20% finished, etc.

One of way of doing this might be to spin off a thread to do the 
processing, and write updates to the user's session every now and again. 
The refreshed page could then display the information from the session.

Is there a recommended way of handling long running processes?

Thanks.

PJDM
-- 
Peter Mayne
Spherion Technology Solutions
Canberra, ACT, Australia
"You're given the form, but you have to write the sonnet yourself.
What you say is completely up to you." - Mrs. Whatsit



More information about the Zope3-dev mailing list