On May 2, 10:36 am, Alex Popescu <
the.mindstorm.mailingl...@gmail.com>
wrote:
> On May 2, 10:25 am, palp <
palp...@gmail.com> wrote:
>
> > I don't know what the actual quota is for CPU intensive requests, but
> > if you're only doing it occasionally (once every hour or so?) you
> > shouldn't have any issues.
> > However, bear in mind that any execution that exceeds a certain amount
> > of time (8 seconds, I think) will stop and throw an exception.
>
> Thanks. Can you point me to the right spot in the documentation where
> I can read about these? I don't think I've seen the 8seconds execution
> limit mentioned anywhere.
>
I couldn't find anywhere the 8 seconds limitation, but I have found
references to this limitation. Here are the quotes:
[1]
http://code.google.com/appengine/docs/whatisgoogleappengine.html
Application code only runs in response to a web request, and must
return response data within a few seconds. A request handler cannot
spawn a sub-process or execute code after the response has been sent.
[2]
http://code.google.com/appengine/docs/python/sandbox.html
An App Engine application cannot:
spawn a sub-process or thread. A web request to an application must be
handled in a single process within a few seconds. Processes that take
a very long time to respond are terminated to avoid overloading the
web server.
[3]
http://code.google.com/appengine/docs/urlfetch/overview.html
Since your application must respond to the user's request within
several seconds, a URL fetch action to a slow remote server may cause
your application to return a server error to the user. There is
currently no way to specify a time limit to the URL fetch action.
One way to control the user experience of a slow remote server is to
use browser JavaScript to call a separate handler on your application
that performs the action that requires URL fetching, then report the
error to the user if the handler fails.
[end quotes/]
Unfortunately, all these are leading me to think once again that there
are way too many limitations or constraints set on the App Engine that
are making the life of a dev quite a hell :(. I usually don't like to
complain, but I must confess that I am having very hard times figuring
out how to write an app (which is quite simple) that would fit into
the app engine. To me it looks like App Engine is way too young and
has way too many constraints.
cheers,