Skip to main content

Cron

Cron-based automation schedule for use with Trigger.

Attributes​

AttributeTypeDescription
expressionstrCron expression string (e.g., "0 * * * *").
timezoneTimezone = "UTC"Timezone for the cron schedule (default "UTC"). One of the standard timezone values (e.g., "US/Eastern", "Europe/London"). Note that DST transitions may cause skipped or duplicated runs.

Constructor​

Signature​

def Cron(
expression: str,
timezone: Timezone = "UTC"
) -> None

Parameters​

NameTypeDescription
expressionstrCron expression string (e.g., "0 * * * *").
timezoneTimezone = "UTC"Timezone for the cron schedule (default "UTC"). One of the standard timezone values (e.g., "US/Eastern", "Europe/London"). Note that DST transitions may cause skipped or duplicated runs.

Methods​


timezone_expression()​

@property
def timezone_expression(self) -> str: ...

Constructs the full cron expression string prefixed with the configured timezone identifier.

Returns​

TypeDescription
strThe cron expression formatted with the timezone prefix (e.g., 'CRON_TZ=UTC 0 * * * *').