Search documentation

Type to search the documentation.

Generated API reference

classyak.Period

yak.Period

Represents a periodic schedule that runs at fixed intervals.

Represents a periodic schedule that runs at fixed intervals.

Python SDK reference · Yak 0.1.19release v0.1.19
provenancec2e8cf7c309abe376f390072b94a9ecd3e633080
Signature
python
Period(*, seconds: Optional[int] = None, minutes: Optional[int] = None, hours: Optional[int] = None, days: Optional[int] = None)

Parameters#

NameTypeDefaultDescription
secondskeyword-only Optional[int] None

Number of seconds between executions

minuteskeyword-only Optional[int] None

Number of minutes between executions

hourskeyword-only Optional[int] None

Number of hours between executions

dayskeyword-only Optional[int] None

Number of days between executions

Raises#

  • ValueError

    If exactly one time unit is not provided

method

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