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.
Stay organized with collections
Save and categorize content based on your preferences.
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>}
- google.appengine.api.croninfo.LoadSingleCron(cron_info, open_fn=None)source
-
Load a cron.yaml file or string and return a CronInfoExternal object.
- 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>}
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ecroninfo\u003c/code\u003e module provides tools for managing cron entries for applications, including loading and working with them.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCronEntry\u003c/code\u003e represents a single cron job and includes attributes like schedule, URL, description, timezone, and retry parameters.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCronInfoExternal\u003c/code\u003e describes all cron entries for an application and contains the application name and the cron list.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGrocValidator\u003c/code\u003e checks if a cron schedule is in a valid format, whereas \u003ccode\u003eTimezoneValidator\u003c/code\u003e verifies that a given timezone is known and can be parsed.\u003c/p\u003e\n"],["\u003cp\u003eThe module includes the \u003ccode\u003eLoadSingleCron\u003c/code\u003e function for loading cron configurations from a yaml file or string, and it can raise a \u003ccode\u003eMalformedCronfigurationFile\u003c/code\u003e exception when a file has invalid configuration.\u003c/p\u003e\n"]]],[],null,["# google.appengine.api.croninfo module\n====================================\n\nSummary\n-------\n\nCronInfo tools.\n\nA library for working with CronInfo records, describing cron entries for an\napplication. Supports loading the records from yaml.\n\nContents\n--------\n\n*class* google.appengine.api.croninfo.CronEntry(\\*\\*attributes)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/croninfo#CronEntry)\n\n: Bases: [google.appengine.api.validation.Validated](/appengine/docs/legacy/standard/python/refdocs/google.appengine.api.validation#google.appengine.api.validation.Validated)\n\n A cron entry describes a single cron job. \n\n ATTRIBUTES*= {u'retry_parameters': \\\u003cgoogle.appengine.api.validation.Optional object\\\u003e, u'schedule': \\\u003cgoogle.appengine.api.croninfo.GrocValidator object\\\u003e, u'url': u'\\^/.\\*$', u'description': \\\u003cgoogle.appengine.api.validation.Optional object\\\u003e, u'timezone': \\\u003cgoogle.appengine.api.croninfo.TimezoneValidator object\\\u003e, u'target': \\\u003cgoogle.appengine.api.validation.Optional object\\\u003e}*\n: \n\n*class* google.appengine.api.croninfo.CronInfoExternal(\\*\\*attributes)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/croninfo#CronInfoExternal)\n\n: Bases: [google.appengine.api.validation.Validated](/appengine/docs/legacy/standard/python/refdocs/google.appengine.api.validation#google.appengine.api.validation.Validated)\n\n CronInfoExternal describes all cron entries for an application. \n\n ATTRIBUTES*= {u'cron': \\\u003cgoogle.appengine.api.validation.Optional object\\\u003e, 'application': \\\u003cgoogle.appengine.api.validation.Optional object\\\u003e}*\n: \n\n*class* google.appengine.api.croninfo.GrocValidator(default=None)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/croninfo#GrocValidator)\n\n: Bases: [google.appengine.api.validation.Validator](/appengine/docs/legacy/standard/python/refdocs/google.appengine.api.validation#google.appengine.api.validation.Validator)\n\n Checks that a schedule is in valid groc format. \n\n Validate(value, key=None)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/croninfo#GrocValidator.Validate)\n\n : Validates a schedule.\n\ngoogle.appengine.api.croninfo.LoadSingleCron(cron_info, open_fn=None)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/croninfo#LoadSingleCron)\n\n: Load a cron.yaml file or string and return a CronInfoExternal object.\n\n*exception* google.appengine.api.croninfo.MalformedCronfigurationFile[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/croninfo#MalformedCronfigurationFile)\n\n: Bases: exceptions.Exception\n\nConfiguration file for Cron is malformed. \n\n*class* google.appengine.api.croninfo.RetryParameters(\\*\\*attributes)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/croninfo#RetryParameters)\n\n: Bases: [google.appengine.api.validation.Validated](/appengine/docs/legacy/standard/python/refdocs/google.appengine.api.validation#google.appengine.api.validation.Validated)\n\n Retry parameters for a single cron job. \n\n ATTRIBUTES*= {u'min_backoff_seconds': \\\u003cgoogle.appengine.api.validation.Optional object\\\u003e, u'job_age_limit': \\\u003cgoogle.appengine.api.validation.Optional object\\\u003e, u'job_retry_limit': \\\u003cgoogle.appengine.api.validation.Optional object\\\u003e, u'max_backoff_seconds': \\\u003cgoogle.appengine.api.validation.Optional object\\\u003e, u'max_doublings': \\\u003cgoogle.appengine.api.validation.Optional object\\\u003e}*\n: \n\n*class* google.appengine.api.croninfo.TimezoneValidator(default=None)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/croninfo#TimezoneValidator)\n\n: Bases: [google.appengine.api.validation.Validator](/appengine/docs/legacy/standard/python/refdocs/google.appengine.api.validation#google.appengine.api.validation.Validator)\n\n Checks that a timezone can be correctly parsed and is known. \n\n Validate(value, key=None)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/croninfo#TimezoneValidator.Validate)\n\n : Validates a timezone."]]