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 = {'retry_parameters': <google.appengine.api.validation.Optional object>, 'schedule': <google.appengine.api.croninfo.GrocValidator object>, 'url': '^/.*$', 'description': <google.appengine.api.validation.Optional object>, 'timezone': <google.appengine.api.croninfo.TimezoneValidator object>, '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 = {'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 = {'min_backoff_seconds': <google.appengine.api.validation.Optional object>, 'job_age_limit': <google.appengine.api.validation.Optional object>, 'job_retry_limit': <google.appengine.api.validation.Optional object>, 'max_backoff_seconds': <google.appengine.api.validation.Optional object>, '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.

Send feedback about...

App Engine standard environment for Python