TransientError
将任务添加到 appengine 中的队列时,我们偶尔会看到错误(每天约 100 个) 。我们能做些什么来处理这些问题,或者更防御性地编写代码来避免它们?
我们收到的错误示例如下所示:
File "/python27_runtime/python27_lib/versions/1/google/appengine/ext/deferred/deferred.py", line 268, in defer
return task.add(queue, transactional=transactional)
File "/python27_runtime/python27_lib/versions/1/google/appengine/api/taskqueue/taskqueue.py", line 1132, in add
return self.add_async(queue_name, transactional).get_result()
File "/python27_runtime/python27_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 604, in get_result
return self.__get_result_hook(self)
File "/python27_runtime/python27_lib/versions/1/google/appengine/api/taskqueue/taskqueue.py", line 1927, in ResultHook
raise _TranslateError(e.application_error, e.error_detail)
TransientError