![]() |
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 | handle |
def | serial_id |
def | reschedule |
![]() | |
def | __init__ |
![]() | |
def | __init__ |
def | initialize |
def | post |
def | handle |
def | task_retry_count |
def | retry_task |
![]() | |
def | initialize |
def | get |
def | post |
def | head |
def | options |
def | put |
def | delete |
def | trace |
def | error |
def | redirect |
def | handle_exception |
def | new_factory |
def | get_url |
Static Public Member Functions | |
def | get_task_name |
def | controller_parameters |
Additional Inherited Members | |
![]() | |
request | |
![]() | |
request | |
response | |
Supervises mapreduce execution. Is also responsible for gathering execution status from shards together. This task is "continuously" running by adding itself again to taskqueue if and only if mapreduce is still active. A mapreduce is active if it has actively running shards.
def google.appengine.ext.mapreduce.handlers.ControllerCallbackHandler.__init__ | ( | self, | |
args | |||
) |
Constructor.
|
static |
Fill in controller task parameters. Returned parameters map is to be used as task payload, and it contains all the data, required by controller to perform its function. Args: mapreduce_spec: specification of the mapreduce. serial_id: id of the invocation as int. Returns: string->string map of parameters to be used as task payload.
|
static |
Compute single controller task name. Args: mapreduce_spec: specification of the mapreduce. serial_id: id of the invocation as int. Returns: task name which should be used to process specified shard/slice.
def google.appengine.ext.mapreduce.handlers.ControllerCallbackHandler.handle | ( | self | ) |
Handle request.
def google.appengine.ext.mapreduce.handlers.ControllerCallbackHandler.reschedule | ( | cls, | |
mapreduce_state, | |||
mapreduce_spec, | |||
serial_id, | |||
queue_name = None |
|||
) |
Schedule new update status callback task. Args: mapreduce_state: mapreduce state as model.MapreduceState mapreduce_spec: mapreduce specification as MapreduceSpec. serial_id: id of the invocation as int. queue_name: The queue to schedule this task on. Will use the current queue of execution if not supplied.
def google.appengine.ext.mapreduce.handlers.ControllerCallbackHandler.serial_id | ( | self | ) |
Get serial unique identifier of this task from request. Returns: serial identifier as int.