当任务接近30秒限制时,应用程序引擎会引发哪个异常?

2024-09-27 21:30:03 发布

您现在位置:Python中文网/ 问答频道 /正文

来自Task Queue Python 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.

那是哪一个例外?在


Tags: theapiapptaskyourifqueueoverview
1条回答
网友
1楼 · 发布于 2024-09-27 21:30:03

例外是google.appengine.runtime.DeadlineExceededError,与普通的web请求相同。从队列中运行的任务的行为与普通web请求相同,只是Taskqueue API将重新安排以非200响应退出的任务。在

相关问题 更多 >

    热门问题