开发者

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

开发者 https://www.devze.com 2023-01-06 21:36 出处:网络
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\'

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

精彩评论

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