Alexander.Elgert at external
Jul 23, 2012, 5:39 AM
In my opinion, this is the correct way.
AW: Framework for handling Query tasks that take a LONG time
[In reply to]
There are many web applications, whichs polls every few seconds to give the server a hint, that the client is interested in the answer.
(This way you are able to abort a long_running_whatever.)
As soon as the call comes back, you can call an update function to handle the output.
There are progress bars available too:
Deutsche Telekom AG
Seamless ICT Security Infrastructure & Management
im Auftrag T-Systems International GmbH
Dipl. Inf Alexander Elgert
Langwadener Strasse 17
+49 176 22 717 661 (Mobil)
+49 671 83419-12 (Tel)
+49 671 83419-30 (Fax)
E-Mail: alexander.elgert [at] gmx
Von: Igor Chudov [ichudov [at] gmail]
Gesendet: Montag, 23. Juli 2012 05:20
Betreff: Framework for handling Query tasks that take a LONG time
I am working on my internal IT system for my business. It is, of course, mod_perl based, as is the rest of what I do (algebra.com etc).
As a part of it, I have an intranet web form that starts a task, which happens to take a long time, such as minutes.
I would like to handle this correctly.
While I read some helpful suggestions, my first instinct would be to look for some existing framework based on mod_perl, instead of trying to reinvent the wheel.
Would anyone happen to have a suggestion of such a perl module or framework for executing long queries in a nice and graceful manner?
1) Start a long query
2) Display an intermediate page that self refreshes
3) Display progress of a task
4) Displaying correct results when task completes.