ORIONIS API REFERENCE

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

Declare asynchronous consumption and graceful stopping.

Async Method execute Execute one claim through scoped DI and fenced transitions.
Async Method run Consume jobs until stopped or the requested limit is reached.
Method stop Stop reserving jobs and drain in-flight executions.
Class Variable __slots__ Undocumented
async def execute(self, reserved: ReservedJob, *, raise_errors: bool = False): (source)

Execute one claim through scoped DI and fenced transitions.

Parameters
reserved:ReservedJobClaim to execute.
raise_errors:bool, optionalPropagate the original error for synchronous dispatch.
Returns
NoneComplete acknowledgement, release, or failure handling.
async def run(self, *, stop_when_empty: bool = False, max_jobs: int | None = None) -> int: (source)

Consume jobs until stopped or the requested limit is reached.

Parameters
stop_when_empty:bool, optionalExit after all consumers find no immediately eligible job.
max_jobs:int | None, optionalMaximum number of attempts started during this run.
Returns
intNumber of processed reservations.

Stop reserving jobs and drain in-flight executions.

Returns
NoneRequest graceful shutdown.
__slots__: tuple = (source)

Undocumented