def task_retry_count(self):
    return int(self.request.headers.get("X-AppEngine-TaskExecutionCount", 0))
Number of times this task has been retried.
dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/src/mapreduce/base_handler.py/TaskQueueHandler.task_retry_count