Cron
Cron-based automation schedule for use with Trigger.
Attributes
| Attribute | Type | Description |
|---|---|---|
| expression | str | Cron expression string (e.g., "0 * * * *"). |
| timezone | Timezone = "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
| Name | Type | Description |
|---|---|---|
| expression | str | Cron expression string (e.g., "0 * * * *"). |
| timezone | Timezone = "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
| Type | Description |
|---|---|
str | The cron expression formatted with the timezone prefix (e.g., 'CRON_TZ=UTC 0 * * * *'). |