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 |
overridden in
orionis.queues.worker.WorkerExecute one claim through scoped DI and fenced transitions.
| Parameters | |
reserved:ReservedJob | Claim to execute. |
raisebool, optional | Propagate the original error for synchronous dispatch. |
| Returns | |
None | Complete acknowledgement, release, or failure handling. |
async def run(self, *, stop_when_empty:
bool = False, max_jobs: int | None = None) -> int:
(source)
¶
overridden in
orionis.queues.worker.Workeroverridden in
orionis.queues.worker.WorkerStop reserving jobs and drain in-flight executions.
| Returns | |
None | Request graceful shutdown. |