The options used to decide when a failed Task will be retried.
def google.appengine.api.taskqueue.taskqueue.TaskRetryOptions.__init__ |
( |
|
self, |
|
|
|
kwargs |
|
) |
| |
Initializer.
Args:
min_backoff_seconds: The minimum number of seconds to wait before retrying
a task after failure. (optional)
max_backoff_seconds: The maximum number of seconds to wait before retrying
a task after failure. (optional)
task_age_limit: The number of seconds after creation afterwhich a failed
task will no longer be retried. The given value will be rounded up to
the nearest integer. If task_retry_limit is also specified then the task
will be retried until both limits are reached. (optional)
max_doublings: The maximum number of times that the interval between
failed task retries will be doubled before the increase becomes
constant. The constant will be:
2**(max_doublings - 1) * min_backoff_seconds. (optional)
task_retry_limit: The maximum number of times to retry a failed task
before giving up. If task_age_limit is specified then the task will be
retried until both limits are reached. (optional)
Raises:
InvalidTaskRetryOptionsError if any of the parameters are invalid.
def google.appengine.api.taskqueue.taskqueue.TaskRetryOptions.max_backoff_seconds |
( |
|
self | ) |
|
The maximum number of seconds to wait before retrying a task.
def google.appengine.api.taskqueue.taskqueue.TaskRetryOptions.max_doublings |
( |
|
self | ) |
|
The number of times that the retry interval will be doubled.
def google.appengine.api.taskqueue.taskqueue.TaskRetryOptions.min_backoff_seconds |
( |
|
self | ) |
|
The minimum number of seconds to wait before retrying a task.
def google.appengine.api.taskqueue.taskqueue.TaskRetryOptions.task_age_limit |
( |
|
self | ) |
|
The number of seconds afterwhich a failed task will not be retried.
def google.appengine.api.taskqueue.taskqueue.TaskRetryOptions.task_retry_limit |
( |
|
self | ) |
|
The number of times that a failed task will be retried.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/api/taskqueue/taskqueue.py