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

Resolve lazy connections and expose the canonical deferred dispatch API.

Method __init__ Validate and serialize queue settings without opening backend clients.
Method _connectionName Validate selection against the configured named backends.
Async Method _createDriver Construct a configured driver through framework database services.
Async Method _submit Serialize validated job options and submit to the selected backend.
Async Method boot Register jobs from the application's configured jobs path.
Async Method close Release queue-owned resources without closing shared database services.
Async Method connection Resolve one shared lazy driver for the selected named connection.
Method dispatch Create one awaitable dispatch without serializing or persisting data.
Async Method failed Resolve durable failed-job storage only when first requested.
Async Method retryFailed Requeue preserved job data with attempts reset by a fresh push.
Async Method worker Create an independent persistent worker using validated defaults.
Class Variable __slots__ Undocumented
Instance Variable _app Undocumented
Instance Variable _config Undocumented
Instance Variable _driver_lock Undocumented
Instance Variable _drivers Undocumented
Instance Variable _failed Undocumented
Instance Variable _failed_lock Undocumented
Instance Variable _serializer Undocumented
def __init__(self, app: IApplication, serializer: IJobSerializer): (source)

Validate and serialize queue settings without opening backend clients.

Parameters
app:IApplicationExisting application container.
serializer:IJobSerializerSingleton registered-job serializer.
Returns
NoneRetain the normalized wire settings for lazy backend resolution.
Raises
TypeErrorIf queue settings have invalid types or unsupported fields.
ValueErrorIf queue settings or their storage relationships are invalid.
def _connectionName(self, name: str | None) -> str: (source)

Validate selection against the configured named backends.

Parameters
name:str | NoneExplicit selection or central default.
Returns
strExisting configured connection name.
async def _createDriver(self, name: str) -> IQueueDriver: (source)

Construct a configured driver through framework database services.

Parameters
name:strValidated configured connection name.
Returns
IQueueDriverDriver whose real I/O starts with its first operation.
async def _submit(self, job: BaseJob, connection: str | None, queue: str | None, delay: float) -> str: (source)

Serialize validated job options and submit to the selected backend.

Parameters
job:BaseJobJob containing only declared serializable state.
connection:str | NoneExplicit backend selection.
queue:str | NoneExplicit channel selection.
delay:floatDelay in seconds before availability.
Returns
strDispatch identifier.
async def boot(self): (source)

Register jobs from the application's configured jobs path.

Returns
NoneRegister discovered job classes with the shared serializer.
Raises
QueueConfigurationErrorIf the jobs path is invalid or a discovered module cannot be imported.
async def close(self): (source)

Release queue-owned resources without closing shared database services.

Returns
NoneClose cached drivers and any initialized failed-job repository, then clear their cached references.
async def connection(self, name: str | None = None) -> IQueueDriver: (source)

Resolve one shared lazy driver for the selected named connection.

Parameters
name:str | None, optionalExplicit connection or central default.
Returns
IQueueDriverBackend shared by its logical channels.
def dispatch(self, job: BaseJob) -> PendingDispatch: (source)

Create one awaitable dispatch without serializing or persisting data.

Parameters
job:BaseJobApplication job containing persistent constructor state.
Returns
PendingDispatchFluent operation submitted only when awaited.
async def failed(self) -> IFailedJobRepository: (source)

Resolve durable failed-job storage only when first requested.

Returns
IFailedJobRepositoryRepository shared by all queue connections.
async def retryFailed(self, failed_id: str) -> str: (source)

Requeue preserved job data with attempts reset by a fresh push.

Parameters
failed_id:strFailure record identifier.
Returns
strRestored job identifier.
async def worker(self, connection: str | None = None, queues: tuple[str, ...] | None = None, concurrency: int | None = None) -> Worker: (source)

Create an independent persistent worker using validated defaults.

Parameters
connection:str | None, optionalExplicit backend or central default.
queues:tuple[str, ...] | None, optionalChannels ordered by priority.
concurrency:int | None, optionalSimultaneous job executions or configured default.
Returns
WorkerConsumer runtime sharing the existing application container.

Undocumented

Undocumented

_driver_lock = (source)

Undocumented

Undocumented

_failed_lock = (source)

Undocumented

_serializer = (source)

Undocumented