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
provenance
c2e8cf7c309abe376f390072b94a9ecd3e633080Signature
Period(*, seconds: Optional[int] = None, minutes: Optional[int] = None, hours: Optional[int] = None, days: Optional[int] = None)
Parameters#
| Name | Type | Default | Description |
|---|---|---|---|
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#
ValueErrorIf 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
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.