Task retry caclulator class.
Determines if and when a task should next be run
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.
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:
- code/googleappengine-read-only/python/google/appengine/api/taskqueue/taskqueue_stub.py