Thank you David, this helped me solve a continual DeadlineExceededError problem 
with an AppEngine app that I inherited.

However, I found that this patch did not work, because the calling method 
has already set 'deadline', so argv.setdefault('deadline', 10) did not 
change the value.

To force the new deadline value, I now use

from google.appengine.api import urlfetch
real_fetch = urlfetch.fetch
def fetch_with_deadline(url, *args, **argv):
    argv['deadline'] = 10 # Force deadline value
    return real_fetch(url, *args, **argv)
urlfetch.fetch = fetch_with_deadline

Once again, thank you for posting your patch. Without your code, I would 
never have been able to fix the problem.

Julie



>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/T7AS3JPDjBQJ.
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