![]() |
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 | run |
def | SetError |
def | WorkOnItems |
def | CheckError |
def | __str__ |
Public Attributes | |
exit_flag | |
A WorkerThread to execute WorkItems. Attributes: exit_flag: A boolean indicating whether this thread should stop its work and exit.
def google.appengine.tools.adaptive_thread_pool.WorkerThread.__init__ | ( | self, | |
thread_pool, | |||
thread_gate, | |||
name = None |
|||
) |
Initialize a WorkerThread instance. Args: thread_pool: An AdaptiveThreadPool instance. thread_gate: A ThreadGate instance. name: A name for this WorkerThread.
def google.appengine.tools.adaptive_thread_pool.WorkerThread.CheckError | ( | self | ) |
If an error is present, then log it.
def google.appengine.tools.adaptive_thread_pool.WorkerThread.run | ( | self | ) |
Perform the work of the thread.
def google.appengine.tools.adaptive_thread_pool.WorkerThread.SetError | ( | self | ) |
Sets the error and traceback information for this thread. This must be called from an exception handler.
def google.appengine.tools.adaptive_thread_pool.WorkerThread.WorkOnItems | ( | self | ) |
Perform the work of a WorkerThread.