Python 2.7 has reached end of support and will be deprecated on January 31, 2026. After deprecation, you won't be able to deploy Python 2.7 applications, even if your organization previously used an organization policy to re-enable deployments of legacy runtimes. Your existing Python 2.7 applications will continue to run and receive traffic after their deprecation date. We recommend that you migrate to the latest supported version of Python.

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年06月16日 UTC.