snowflake.core.task.Cron

class snowflake.core.task.Cron(expr: str, timezone: str)

Bases: NamedTuple

Specifies a cron expression and time zone for periodically running the task.

Supports a subset of standard cron utility syntax.

Examples

>>> cron1 = Cron("0 0 10-20 * TUE,THU", "America/Los_Angeles")

Create new instance of Cron(expr, timezone)