App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.api.taskqueue.taskqueue.TaskRetryOptions Class Reference
Inheritance diagram for google.appengine.api.taskqueue.taskqueue.TaskRetryOptions:

Public Member Functions

def __init__
 
def min_backoff_seconds
 
def max_backoff_seconds
 
def task_age_limit
 
def max_doublings
 
def task_retry_limit
 
def __repr__
 

Detailed Description

The options used to decide when a failed Task will be retried.

Constructor & Destructor Documentation

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.

Member Function Documentation

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: