If we log things, we can't pretend we were unaware of a problem.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Robert Kluin
Sent: Tuesday, January 24, 2012 11:33 AM
To: [email protected]
Subject: Re: [google-appengine] Hide Dead Line Exceeded Errors from User
(Python)

I would seriously consider including a logging call so I knew where the
deadline was actually getting hit.  Masking errors is a great way to miss
problems.

Also, for quite a long time I've set lower deadlines on individual RPC
calls.  This frequently allows you to quickly hit an RPC deadline and try
again within the first request; in a high percentage of cases it will
succeed the second try.


Robert






On Mon, Jan 23, 2012 at 05:05, Brandon Wirtz <[email protected]> wrote:
> You Just Died a Horrible death your app timed out, the world is ending
> around you.  Deal with it. No, seriously, handle the exception and try
> it again it will work eventually.
>
>
>
> Here is the code.
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
>
>
> from google.appengine.runtime import DeadlineExceededError
>
>
>
> class MainPage(webapp.RequestHandler):
>
>     def get(self):
>
>         try:
>
>             # Do stuff...
>
>
>
>         except DeadlineExceededError:
>
>             self.response.clear()
>
>             self.response.headers['Location'] = response.geturl()
>
>             self.response.set_status(302)
>
>
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
>
>
> Feel free to send Dancing Girls, Mermaids, Mountain Dew, or whatever
> else if this makes all your DEE issues go away.  We are testing this
> for keeping free apps free. Server might get slow, but pages will
> always load. (unless you get 7 302’s then most browsers give up.)
>
>
>
>
>
>
>
>
>
> --
> 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.

--
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.



-- 
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