Thanks for the reply, that's excellent, that's great I can remove the
wrapper then.

Not sure what to do about the new timeout errors I'm seeing but  I
ssume these must only get generated now if the datastore is in fact
down for some reason?

So I guess I'll need to test for datastore availability and return a
nice error to my users if it's down.... now I saw example code for
that somewhere.... google search here I come :)

Thanks
Richard

On Feb 27, 5:52 am, "Ikai L (Google)" <[email protected]> wrote:
> App Engine actually automatically retries now:
>
> http://googleappengine.blogspot.com/2010/02/app-engine-sdk-131-includ...
>
> <http://googleappengine.blogspot.com/2010/02/app-engine-sdk-131-includ...>Was
> this the functionality you were looking for?
>
> On Thu, Feb 25, 2010 at 12:01 PM, rpalmer68 <[email protected]>wrote:
>
>
>
>
>
> > Hi everybody,
>
> > I need some help as a newbie GAE coder please.
>
> > I found this really helpful cookbook entry about handling datastore
> > timeouts and have implemented it in my code;
> >http://appengine-cookbook.appspot.com/recipe/autoretry-datastore-time...
>
> > It's been working well and I've been getting timeout warnings and
> > retries instead of Time out errors just fine until about the 9th Feb
> > and then I started getting the following errors coming up in my logs
> > every now a then;
>
> > -----------------------
> > datastore timeout: operation took too long.
> >  Traceback (most recent call last):
> >   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> > __init__.py", line 507, in __call__    handler.get(*groups)  File "/
> > base/data/home/apps/avi-web2/3.340039246064113396/online.py", line
> > 188, in get
> >   count=q.count(2)
> >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > __init__.py", line 1585, in count    result =
> > raw_query.Count(limit=limit, rpc=rpc)
> >    File "/base/python_lib/versions/1/google/appengine/api/
> > datastore.py", line 1211, in Count    raise _ToDatastoreError(err)
> > Timeout: datastore timeout: operation took too long.
> > -------------------------
>
> > Can anybody help me trap these errors using the code in the cookbook
> > please?
>
> > Many thanks
> > Richard
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-appengine%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App 
> Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine- Hide 
> quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to