Generated API reference
classyak.Cron
yak.Cron
Represents a cron-based schedule that runs based on a cron expression.
Represents a cron-based schedule that runs based on a cron expression.
Python SDK reference · Yak 0.1.19release v0.1.19
provenance
c2e8cf7c309abe376f390072b94a9ecd3e633080Signature
Cron(expression: str, *, timezone: str)
Parameters#
| Name | Type | Default | Description |
|---|---|---|---|
expressionpositional-or-keyword |
str |
— |
Cron expression (6-field format: sec min hour day month weekday) |
timezonekeyword-only |
str |
— |
IANA timezone name (e.g., 'America/New_York', 'UTC') |
Raises#
ValueErrorIf expression is invalid or timezone is not provided
method
Cron.to_dict#
Convert the schedule to a dictionary for serialization.
Convert the schedule to a dictionary for serialization.
Signature
to_dict() -> dict
Returns#
dictDictionary representation of the schedule
Related guides
BoundaryPreview limitations
- This page is generated from the pinned release schema; update the site pin when a new release should be documented.
- Lifecycle, persistence and operational context belong in the linked handwritten guides.