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_stub.Retry Class Reference
Inheritance diagram for google.appengine.api.taskqueue.taskqueue_stub.Retry:

Public Member Functions

def __init__
 
def CanRetry
 
def CalculateBackoffUsec
 

Detailed Description

Task retry caclulator class.

Determines if and when a task should next be run

Constructor & Destructor Documentation

def google.appengine.api.taskqueue.taskqueue_stub.Retry.__init__ (   self,
  task,
  queue 
)
Constructor.

Args:
  task: A taskqueue_service_pb.TaskQueueQueryTasksResponse_Task instance.
  May be None.
  queue: A _Queue instance. May be None.

Member Function Documentation

def google.appengine.api.taskqueue.taskqueue_stub.Retry.CalculateBackoffUsec (   self,
  retry_count 
)
Calculates time before the specified retry.

Args:
  retry_count: An integer specifying which retry this is.

Returns:
  The number of microseconds before a task should be retried.
def google.appengine.api.taskqueue.taskqueue_stub.Retry.CanRetry (   self,
  retry_count,
  age_usec 
)
Computes whether a task can be retried.

Args:
  retry_count: An integer specifying which retry this is.
  age_usec: An integer specifying the microseconds since the first try.

Returns:
 True if a task is eligible for retrying.

The documentation for this class was generated from the following file: