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")
Copy

Create new instance of Cron(expr, timezone)

Methods

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

Language: English