[Zope] Progress information for long running process

Jan Maska jan.maska@systinet.com
Wed, 9 Apr 2003 17:53:52 +0200


What about writing the process status into a log-file?
After a user starts the process, redirect him to that logfile (e.g.
HTML-type with a meta-refresh so that it updates) and let him watch the
progress.

You may want him to return back, then.. well, in the final step, replace the
self-refreshing metatag with one that passes the user back to wherever you
want.

Just a workaround. :-)


-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Jim Penny
Sent: Wednesday, April 09, 2003 5:42 PM
To: zope@zope.org
Subject: Re: [Zope] Progress information for long running process


Eddie M?nch wrote:
>Hi All,
>
>Could someone help with this problem:
>I have a long running process performed with an external method. Long
>means > 30 min. At the and I'm giving back HTML code to the calling
>object. What I need now is same sort of progress information on the web
>page (e.g. Processing step 50 out of 100). Has anyone an idea how to do
>this?

Actually, I would probably try something completely different.  I would
immediately return something like:

'Your job is being processed.  As this job takes a long time to perform,
and there is no good reason to tie up you and your browser, I will send
you an email when this is done telling you where you may pick up your
results.'

Then send an email with an URI to the result.

Jim Penny

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )