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.

module documentation

Persist queued jobs using atomic conditional updates and expiring leases.

Class DatabaseQueueDriver Persist queued jobs using atomic conditional updates and expiring leases.
Function eligible_clauses Build predicates for an available or expired queue row.
Constant _CLAIM_ROUNDS Claim rounds value used by database.
Constant _ENCODER Encoder used by database.
def eligible_clauses(queue: str, now: float) -> list[WhereClause]: (source)

Build predicates for an available or expired queue row.

Parameters
queue:strLogical queue whose jobs are eligible.
now:floatCurrent epoch timestamp.
Returns
list of orionis.orm.query.WhereClausePredicates shared by candidate lookup and atomic claim.
_CLAIM_ROUNDS: int = (source)

Claim rounds value used by database.

Value
100
_ENCODER = (source)

Encoder used by database.

Value
msgspec.json.Encoder()