[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-17 Thread J Keller
> It should be fairly straightforward to handle this polling in > Javascript, eliminating the infinite redirect loop and allowing for > the possibility of giving status readouts for the user :) That sounds promising. I very familiar with Java, but have just started playing with javascript recentl

[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-16 Thread bd_
On Jun 16, 3:15 pm, J Keller wrote: > Thank you Scott - that redirect trick worked great. > > After processing a subset of the data, I simply redirect back to my > service.  Each time it caches more of the data, until the job is > complete.  Sometimes this can cause the browser to give up and r

[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-16 Thread J Keller
Thank you Scott - that redirect trick worked great. After processing a subset of the data, I simply redirect back to my service. Each time it caches more of the data, until the job is complete. Sometimes this can cause the browser to give up and report an 'infinite redirect loop', but it usuall

[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-04 Thread Scott Seely
invoking URLs. -Original Message- From: google-appengine@googlegroups.com [mailto:google-appeng...@googlegroups.com] On Behalf Of J Keller Sent: Wednesday, June 03, 2009 4:09 PM To: Google App Engine Subject: [google-appengine] Re: DeadlineExceededException - how to avoid? That might

[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-03 Thread Wooble
You may want to look in to the remote API if you want long-running processes without waiting for them to be added; you'll have to provide your own hardware and use the bandwidth to send your data back and forth, but you can do whatever processing you want and you can do it now. On Jun 3, 5:08 pm,

[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-03 Thread J Keller
That might help some, but according to the docs: A cron job will invoke a URL at a given time of day. A URL invoked by cron is subject to the same limits and quotas as a normal HTTP request, including the request time limit. Unfortuantely, I don't think I can reasonably break my task down in

[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-03 Thread Wooble
On Jun 3, 10:46 am, fel wrote: > yeah but what if it is a banking app that needs to do all sorts of > complex transactional processing? Any bank that would trust the Datastore, with its inability to do transactions across entity groups, to handle its data is probably run about as well as, well

[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-03 Thread Scott Seely
2009 9:47 AM To: Google App Engine Subject: [google-appengine] Re: DeadlineExceededException - how to avoid? yeah but what if it is a banking app that needs to do all sorts of complex transactional processing? On Jun 3, 9:09 am, Wooble wrote: > On Jun 3, 9:51 am, J Keller wrote: > &g

[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-03 Thread fel
yeah but what if it is a banking app that needs to do all sorts of complex transactional processing? On Jun 3, 9:09 am, Wooble wrote: > On Jun 3, 9:51 am, J Keller wrote: > > > Ouch.  So does this mean I can't use the GAE to do any operation > > that's going to take longer than 30 seconds? > >

[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-03 Thread Wooble
On Jun 3, 9:51 am, J Keller wrote: > Ouch.  So does this mean I can't use the GAE to do any operation > that's going to take longer than 30 seconds? > > Surely that's not the case - that would change it from being a very > useful tool, to one which is useless (for me, anyway). > > I hope I'm mi

[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-03 Thread J Keller
Ouch. So does this mean I can't use the GAE to do any operation that's going to take longer than 30 seconds? Surely that's not the case - that would change it from being a very useful tool, to one which is useless (for me, anyway). I hope I'm missing something... --~--~-~--~~---

[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-03 Thread Wooble
On Jun 2, 5:20 pm, J Keller wrote: > If not, I suppose I could spin off multiple threads on the server > side, and hope they all finish in time. No, you can't. It's impossible to create new threads. --~--~-~--~~~---~--~~ You received this message because you ar

[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-02 Thread J Keller
Okay, thank you Nick. Is there any way I can somehow continue processing, after returning a response to the user? If not, I suppose I could spin off multiple threads on the server side, and hope they all finish in time. Thanks again. -J --~--~-~--~~~---~--~~ Yo

[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-02 Thread Nick Johnson (Google)
Hi, You can catch the first DeadlineExceededException, after which you have a short time (less than a second) to wrap up your request and return a response to the user. If you fail to do so, a second, uncatchable exception is thrown to terminate your script. -Nick Johnson On Tue, Jun 2, 2009 at