google.appengine.api.croninfo module
Summary
CronInfo tools.
A library for working with CronInfo records, describing cron entries for an application. Supports loading the records from yaml.
Contents
- class google.appengine.api.croninfo.CronEntry(**attributes)source
-
Bases: google.appengine.api.validation.Validated
A cron entry describes a single cron job.
- ATTRIBUTES = {u'retry_parameters': <google.appengine.api.validation.Optional object>, u'schedule': <google.appengine.api.croninfo.GrocValidator object>, u'url': u'^/.*$', u'description': <google.appengine.api.validation.Optional object>, u'timezone': <google.appengine.api.croninfo.TimezoneValidator object>, u'target': <google.appengine.api.validation.Optional object>}
- class google.appengine.api.croninfo.CronInfoExternal(**attributes)source
-
Bases: google.appengine.api.validation.Validated
CronInfoExternal describes all cron entries for an application.
- ATTRIBUTES = {u'cron': <google.appengine.api.validation.Optional object>, 'application': <google.appengine.api.validation.Optional object>}
- class google.appengine.api.croninfo.GrocValidator(default=None)source
-
Bases: google.appengine.api.validation.Validator
Checks that a schedule is in valid groc format.
- Validate(value, key=None)source
-
Validates a schedule.
- google.appengine.api.croninfo.LoadSingleCron(cron_info, open_fn=None)source
-
Load a cron.yaml file or string and return a CronInfoExternal object.
- exception google.appengine.api.croninfo.MalformedCronfigurationFilesource
-
Bases: exceptions.Exception
Configuration file for Cron is malformed.
- class google.appengine.api.croninfo.RetryParameters(**attributes)source
-
Bases: google.appengine.api.validation.Validated
Retry parameters for a single cron job.
- ATTRIBUTES = {u'min_backoff_seconds': <google.appengine.api.validation.Optional object>, u'job_age_limit': <google.appengine.api.validation.Optional object>, u'job_retry_limit': <google.appengine.api.validation.Optional object>, u'max_backoff_seconds': <google.appengine.api.validation.Optional object>, u'max_doublings': <google.appengine.api.validation.Optional object>}
- class google.appengine.api.croninfo.TimezoneValidator(default=None)source
-
Bases: google.appengine.api.validation.Validator
Checks that a timezone can be correctly parsed and is known.
- Validate(value, key=None)source
-
Validates a timezone.