开发者

Which exception App Engine raises when a task nears the 30 second limit?

开发者 https://www.devze.com 2023-01-16 10:20 出处:网络
From Task Queue Py开发者_如何学运维thon API Overview: If your task\'s execution nears the 30 second limit, App Engine will raise an

From Task Queue Py开发者_如何学运维thon API Overview:

If your task's execution nears the 30 second limit, App Engine will raise an exception which you may catch and then quickly save your work or log process.

Which exception is that?


The exception is google.appengine.runtime.DeadlineExceededError, the same was with normal web requests. A task running from the queue behaves identically to an ordinary web request, except that the Taskqueue API will reschedule a task that exits with a non-200 response.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号