THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class Task(BaseEntity): (source)
Represent a scheduled event and configure its execution and timing.
| Parameters | |
| signature | Unique identifier for the event. |
| args | Arguments to be passed to the event. Defaults to empty list. |
| kwargs | Keyword arguments to be passed to the event. Defaults to empty dict. |
| purpose | Description of the event's purpose. |
| random | Random delay in seconds before triggering. |
| start | Date and time when the event becomes active. |
| end | Date and time when the event becomes inactive. |
| trigger | Trigger mechanism for event execution. |
| details | Additional metadata about the event. |
| max | Maximum concurrent instances allowed. Defaults to 1. |
| misfire | Grace period in seconds for misfired events. |
| coalesce | Whether to coalesce missed runs into a single run. Defaults to True. |
| listeners | Listeners for event-specific logic. Defaults to empty list. |
| Returns | |
Task | Instance of Task with specified configuration. |
| Class Variable | args |
Undocumented |
| Class Variable | coalesce |
Undocumented |
| Class Variable | details |
Undocumented |
| Class Variable | end |
Undocumented |
| Class Variable | kwargs |
Undocumented |
| Class Variable | listeners |
Undocumented |
| Class Variable | max |
Undocumented |
| Class Variable | misfire |
Undocumented |
| Class Variable | purpose |
Undocumented |
| Class Variable | random |
Undocumented |
| Class Variable | signature |
Undocumented |
| Class Variable | start |
Undocumented |
| Class Variable | trigger |
Undocumented |
Inherited from BaseEntity:
| Class Method | _cached |
Retrieve field definitions and normalized types cached by class. |
| Method | __post |
Provide a no-op initialization hook for subclass validation. |
| Method | get |
Describe field names, normalized types, defaults, and metadata. |
| Method | to |
Convert the dataclass instance to a recursively copied dictionary. |
| Class Variable | __slots__ |
Undocumented |