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)
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.