Schedule interface

Configuration options for scheduled functions.

Signature:

exportinterfaceSchedule

Properties

PropertyTypeDescription
retryConfigScheduleRetryConfigSettings that determine the retry behavior.
schedulestringDescribes the schedule on which the job will be executed.The schedule can be either of the following types:1.Crontab2. English-likeschedule
timeZonestring | ResetValueSpecifies the time zone to be used in interpretingSchedule.schedule.The value of this field must be a time zone name from the tz database.

Schedule.retryConfig

Settings that determine the retry behavior.

Signature:

retryConfig?:ScheduleRetryConfig;

Schedule.schedule

Describes the schedule on which the job will be executed.

The schedule can be either of the following types:

  1. Crontab

  2. English-likeschedule

Signature:

schedule:string;

Example

// Crontab scheduleschedule:"0 9 * * 1"`// Every Monday at 09:00 AM// English-like scheduleschedule:"every 5 minutes"

Schedule.timeZone

Specifies the time zone to be used in interpretingSchedule.schedule.

The value of this field must be a time zone name from the tz database.

Signature:

timeZone?:string|ResetValue;

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

Last updated 2022-10-14 UTC.