snowflake.core.task.Cron | Snowflake Documentation (original) (raw)
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)
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.