如何避免RPC的DeadlineExceededError错误

时间:2014-08-03 10:39:04

标签: google-app-engine

我正在使用Google App Engine获取DeadlineExceededError。

阅读本https://developers.google.com/appengine/articles/deadlineexceedederrors我认为这是由于:

google.appengine.runtime.apiproxy_errors.DeadlineExceededError:如果RPC超过其截止日期,则会引发此问题。这通常为5秒,但可以使用“截止日期”和#39;选项。

但是,我无法找到如何设置截止日期选项。我该怎么做?我只能找到如何设置url_fetch截止日期的示例,而不是apiproxy_errors。

添加更多详情:

我正在使用Python。我的一个例子是:

taskqueue.add( url='/hl', deadline=60)

所以在我添加到taskqueue之后,将调用xyz.appspot.com/hl上的页面,但它在5秒后给了我超过截止日期的错误。

0 个答案:

没有答案