I decided to finally do something about the Timeout exceptions littering my log.
I read somewhere on this forum that I am supposed to code around data store accesses to try things out several times in case of timeouts. Is this still necessary? Why won't the methods just do that internally? This is my first attempt to handle a timeout situation, is there any nicer way to code this? retries = 3 retry = True while retry: try: retry = False recipient.put() except: retries -= 1 if retries > 0: retry = True logging.info("recipient.put() failed, retrying") else: logging.error("failed even after trying recipient.put() three times") --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---