Search documentation

Type to search the documentation.

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
provenancec2e8cf7c309abe376f390072b94a9ecd3e633080
Signature
python
Cron(expression: str, *, timezone: str)

Parameters#

NameTypeDefaultDescription
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#

  • ValueError

    If 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
python
to_dict() -> dict

Returns#

dict

Dictionary representation of the schedule

Related guides

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