For how long are task names tombstoned in AppEngin

2019-06-23 05:15发布

When adding tasks to a queue in AppEngine, task names cannot be reused for a certain amount of time (said to be "tombstoned"). I could not find the duration of the tombstone in the documentation or any way to modify it.

The only thing that hits in the neighborhood is TaskOptions.Builder.etaMillis(), which sets the expected duration of the task (what for, I don't know). There is no documented relationship between this and the tombstone duration.

So, anyone with insight on this?

3条回答
来,给爷笑一个
2楼-- · 2019-06-23 05:38

From official task queue docs:

A task is deleted immediately upon successful execution or deletion, or after a maximum number of failures. The task name can then be re-used after 10 days. Attempting to create another task with that same name during this 10-day period will result in an "item exists" error. To avoid issues with task name re-use, we recommend that you let App Engine generate the task name automatically.

So I think it must be 10 days

查看更多
Bombasti
3楼-- · 2019-06-23 05:53

It's undefined. This means that developers cannot set it, nor expect an approximate tombstone duration value.

The "certain amount of time" may be arbitrarily set by the GAE team or dynamically set by the system.

If you don't want to run the same tasks during a specific amount of time, you should just really build your own workflow implementation for it. :)

查看更多
Summer. ? 凉城
4楼-- · 2019-06-23 05:54

Why should there be a limitation. I think nobody can imagine Google will reset App Engine. So it is part of your application and you are the only one, who pays the bill. So as long as you pay the bill .... is my answer.

See also this feature request : http://code.google.com/p/googleappengine/issues/detail?id=1774

查看更多
登录 后发表回答