开发者

Can a app engine task get a count of the number of times it's been run?

I am running thousands of tasks per hour in Google App Engine and around .1% of them are failing even after multiple retries. Ideally, I want them to stop trying and exit. However, due to app engine's design they seem to be just trying again and again. I know there is a backoff time which increases with every unsuccessful execution, but I want them to exit after n retries altogether.

Can i accomplish this somehow? can a ta开发者_如何学Gosk get a count of the number of times it has unsuccessfully run?


Yes, you can get a count of the number of times your task has been retried by reading the X-AppEngine-TaskRetryCount HTTP header.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜