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

class WorkerSignals: (source)

Constructor: WorkerSignals(worker)

View In Hierarchy

Install temporary worker shutdown handlers on the main thread.

Method __enter__ Install portable signal callbacks without replacing thread handlers.
Method __exit__ Restore the application's previous signal handlers.
Method __init__ Store the worker and currently running event loop.
Class Variable __slots__ Declare the instance attribute slots reserved by this class.
Instance Variable _handlers Handlers retained for dispatch or restoration during cleanup.
Instance Variable _loop Loop produced by asyncio.get_running_loop.
Instance Variable _worker Worker receiving graceful shutdown requests.
def __enter__(self): (source)

Install portable signal callbacks without replacing thread handlers.

Returns
NoneComplete the documented operation without returning a value.
def __exit__(self, *_exception: object): (source)

Restore the application's previous signal handlers.

Parameters
*_exception:objectException details from the context manager.
Returns
NoneComplete the documented operation without returning a value.
def __init__(self, worker: IWorker): (source)

Store the worker and currently running event loop.

Parameters
worker:orionis.queues.contracts.worker.IWorkerWorker receiving graceful shutdown requests.
Returns
NoneComplete the documented operation without returning a value.
__slots__: tuple[str, ...] = (source)

Declare the instance attribute slots reserved by this class.

Handlers retained for dispatch or restoration during cleanup.

Loop produced by asyncio.get_running_loop.

Worker receiving graceful shutdown requests.