An executor that supports scheduling.
def google.appengine.tools.devappserver2.scheduled_executor.ScheduledExecutor.add_event |
( |
|
self, |
|
|
|
runnable, |
|
|
|
eta, |
|
|
|
key = None |
|
) |
| |
Schedule an event to be run.
Args:
runnable: A callable to run.
eta: An int containing when to run runnable in seconds since the epoch.
key: An optional key that implements __hash__ that can be passed to
update_event.
def google.appengine.tools.devappserver2.scheduled_executor.ScheduledExecutor.update_event |
( |
|
self, |
|
|
|
eta, |
|
|
|
key |
|
) |
| |
Modify when an event should be run.
Args:
eta: An int containing when to schedule the event in seconds since the
epoch.
key: The key of the event to modify.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/devappserver2/scheduled_executor.py