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 SyncQueueDriver(IQueueDriver): (source)
Constructor: SyncQueueDriver(app, serializer, connection, failed_resolver, ...)
Execute one immediate attempt through the shared worker pipeline.
| Method | __init__ |
Prepare immediate execution without a durable backend. |
| Async Method | clear |
Return zero removed jobs for an immediate channel. |
| Async Method | close |
Signal the worker to stop without closing application services. |
| Async Method | delete |
Acknowledge completion of an immediate execution. |
| Async Method | push |
Execute the job immediately and propagate its original exception. |
| Async Method | release |
Reject persistent retry on an immediate connection. |
| Async Method | reserve |
Return no durable work for an immediate connection. |
| Async Method | size |
Return the empty durable size of an immediate channel. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _retry |
Undocumented |
| Instance Variable | _serializer |
Undocumented |
| Instance Variable | _worker |
Undocumented |
def __init__(self, app:
IApplication, serializer: IJobSerializer, connection: str, failed_resolver: FailedResolver, retry_after: float = 90.0):
(source)
¶
Prepare immediate execution without a durable backend.
| Parameters | |
app:IApplication | Existing application container. |
serializer:IJobSerializer | Registered job serializer. |
connection:str | Logical connection name. |
failedFailedResolver | Resolver called only on terminal failure. |
retryfloat, optional | Execution lease used by the shared pipeline. |
| Returns | |
None | Complete the documented operation without returning a value. |
Signal the worker to stop without closing application services.
| Returns | |
None | Set the stop signal without waiting for running jobs. |
Acknowledge completion of an immediate execution.
| Parameters | |
reserved:ReservedJob | Unused immediate reservation. |
| Returns | |
bool | Always true for the in-process execution. |
Execute the job immediately and propagate its original exception.
| Parameters | |
envelope:JobEnvelope | Immutable job payload and execution settings. |
delay:float, optional | Delay, which must be zero for immediate execution. |
| Returns | |
str | Completed dispatch identifier. |
| Raises | |
QueueDispatchError | If delayed execution is requested. |
Reject persistent retry on an immediate connection.
| Parameters | |
reserved:ReservedJob | Unused immediate reservation. |
delay:float, optional | Requested retry delay. |
| Returns | |
bool | Result of the operation described above. |
| Raises | |
QueueDispatchError | Always, because immediate jobs have no durable storage. |
async def reserve(self, queues:
tuple[ str, ...], retry_after: float) -> ReservedJob | None:
(source)
¶