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

Public Member Functions

def __init__
 
def ExecuteTask
 

Detailed Description

Executor for a task object.

Converts a TaskQueueQueryTasksResponse_Task into a http request, then uses the
httplib library to send it to the http server.

Constructor & Destructor Documentation

def google.appengine.api.taskqueue.taskqueue_stub._TaskExecutor.__init__ (   self,
  default_host,
  request_data 
)
Constructor.

Args:
  default_host: a string to use as the host/port to connect to if the host
  header is not specified in the task.
  request_data: A request_info.RequestInfo instance used to look up state
  associated with the request that generated an API call.

Member Function Documentation

def google.appengine.api.taskqueue.taskqueue_stub._TaskExecutor.ExecuteTask (   self,
  task,
  queue 
)
Construct a http request from the task and dispatch it.

Args:
  task: The task to convert to a http request and then send. An instance of
  taskqueue_service_pb.TaskQueueQueryTasksResponse_Task
  queue: The queue that this task belongs to. An instance of _Queue.

Returns:
  Http Response code from the task's execution, 0 if an exception occurred.

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