什么是App Engine的任务队列中的TombstonedTaskError? [英] What is TombstonedTaskError from App Engine's Task Queue?
问题描述
TombstonedTaskError
是什么意思?它正在尝试从cron-job添加任务到队列中:
Traceback(最近一次调用最后一次):
文件/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py,第501行,在__call__
handler.get(* groups)
文件/base/data/home/apps/.../tasks.py,第132行,获取
).add(queue_name ='userfeedcheck')
文件/ base / python_lib /版本/ 1 / google / appengine / api / labs / taskqueue / taskqueue.py,第495行,添加
return Queue(queue_name).add(self)
文件/ base / python_lib / versions /1/google/appengine/api/labs/taskqueue/taskqueue.py,第563行添加
self .__ TranslateError(e)
文件/ base / python_lib / versions / 1 / google / appengine / api / labs / taskqueue / taskqueue.py,第619行,in __TranslateError
raise TombstonedTaskError(error.error_detail)
TombstonedTaskError
搜索文档只有以下内容:
异常TombstonedTaskError(InvalidTaskError)
任务已被逻辑删除。
..这不是特别有用。
在 App Engine代码或者。
您之前已经添加了一个具有该确切名称的任务。虽然它已经运行,但执行的任务名称会保留一段时间以防止意外重复。如果您正在分配任务名称,则应使用全球唯一的名称以防止发生这种情况。
What does the TombstonedTaskError
mean? It is being raised while trying to add a task to the queue, from a cron-job:
Traceback (most recent call last):
File "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 501, in __call__
handler.get(*groups)
File "/base/data/home/apps/.../tasks.py", line 132, in get
).add(queue_name = 'userfeedcheck')
File "/base/python_lib/versions/1/google/appengine/api/labs/taskqueue/taskqueue.py", line 495, in add
return Queue(queue_name).add(self)
File "/base/python_lib/versions/1/google/appengine/api/labs/taskqueue/taskqueue.py", line 563, in add
self.__TranslateError(e)
File "/base/python_lib/versions/1/google/appengine/api/labs/taskqueue/taskqueue.py", line 619, in __TranslateError
raise TombstonedTaskError(error.error_detail)
TombstonedTaskError
Searching the documentation only has the following to say:
exception TombstonedTaskError(InvalidTaskError) Task has been tombstoned.
..which isn't particularly helpful.
I couldn't find anything useful in the App Engine code either..
You've added a task with that exact name before. Although it's already run, executed task names are kept around for some time to prevent accidental duplicates. If you're assigning task names, you should be using ones that are globally unique to prevent this occurring.
这篇关于什么是App Engine的任务队列中的TombstonedTaskError?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!