For some reason, I got the impression that it's just called Timeout, but it doesn't seem to be.
Thanks!
Timeout exception handling is explained in the Request Timer section in the docs:
The request handler has a limited amount of time to generate and return a response to the request, usually about 30 seconds. Once the deadline is reached, the request handler will be interrupted.Python , DeadlineExceededError google.appengine.runtime. , , HTTP- ., . ( ) .from google.appengine.runtime import DeadlineExceededError class MainPage(webapp.RequestHandler): def get(self): try: # Do stuff... except DeadlineExceededError: self.response.clear() self.response.set_status(500) self.response.out.write("This operation could not be completed in time...") , .30 , App Engine , , . . , App Engine.
The request handler has a limited amount of time to generate and return a response to the request, usually about 30 seconds. Once the deadline is reached, the request handler will be interrupted.
Python , DeadlineExceededError google.appengine.runtime. , , HTTP- .
DeadlineExceededError
google.appengine.runtime
, . ( ) .
from google.appengine.runtime import DeadlineExceededError class MainPage(webapp.RequestHandler): def get(self): try: # Do stuff... except DeadlineExceededError: self.response.clear() self.response.set_status(500) self.response.out.write("This operation could not be completed in time...")
, .
30 , App Engine , , . . , App Engine.
DataStore TimeOut
google.appengine.ext.db :[...]exception Timeout(), , .
google.appengine.ext.db :
google.appengine.ext.db
[...]
exception Timeout(), , .
exception Timeout()
- google.appengine.ext.db.Timeout. ( ) google.appengine.runtime.DeadlineExceededError. DeadlineExceeded "soft" , , ; , , , script .
Source: https://habr.com/ru/post/1709349/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1709344/how-to-add-sql-server-2008-express-to-list-of-prerequisites&usg=ALkJrhirDBtHApJliWZjeHY4yiIwao7MVwHow can I run the method programmatically as described by the selector? - objective-cIs RESTful Important? - jsonWhat tools do you use to analyze text? - language-agnosticSome questions about special operators that I have never seen in C ++ code - c ++Passing a variable value from javascript to ASP - jqueryIs there a good way to detect empty results in a Linq-To-Entities query? - .netАдаптер Region Prism2 для AvalonDock DocumentPane и DockingPane? - prismHow to programmatically determine if a text document is damaged? - .netHow to draw 3D surfaces and hide invisible lines? - 3dAll Articles