![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | ExecuteTask |
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.
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.
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.