Hi,
One of my server side methods requires about 20 minutes to complete
(involves executing a series of scripts and a whole lot of iterations to
execute a complex algorithm).
An asynchronous call to this method from my client does not return back to
the client even after the method finishes
This is actually a very bad idea! IE will most probably kill the
request before the server does.
You should see if you can implement this in an asynchronous operation
on the server side and check for the state on regular intervals.
On Tue, Aug 11, 2009 at 9:43 PM, lakshmi
Assuming you can't make the code run faster, one technique I've seen done is
to have the the RPC return when the job has been submitted. The user can
then check on a jobs page to see a list of jobs from a database.
Unfinished jobs can say processing until the server side has updated the
list that
I meant to mention that you'd probably want to save the finished results in
a database, and maybe keep the last few jobs per user. My wife runs jobs
that take weeks to process. Saving all on the server would let you come
back the next day or 10 minutes later, from a different browser instance.
Thanks David and Daniel!
I changed my code to periodically poll the result store to detect
completion.
thanks,
Lakshmi
On Tue, Aug 11, 2009 at 1:00 PM, Daniel Jue teamp...@gmail.com wrote:
I meant to mention that you'd probably want to save the finished results in
a database, and maybe keep