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 DatabaseFailedJobRepository(IFailedJobRepository): (source)
Constructor: DatabaseFailedJobRepository(connection, table)
Retain failed envelopes and diagnostics in framework-owned DB storage.
| Method | __init__ |
Bind failure storage to a framework database connection. |
| Async Method | _ensure |
Create the failure table on first use. |
| Async Method | all |
Return recorded failures in chronological order. |
| Async Method | close |
Leave the shared database connection under its manager's ownership. |
| Async Method | find |
Find one persisted failure by identifier. |
| Async Method | forget |
Remove one recorded failure. |
| Async Method | record |
Record a terminal failure once for this reservation token. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _connection |
Undocumented |
| Instance Variable | _definition |
Undocumented |
| Instance Variable | _ready |
Undocumented |
| Instance Variable | _ready |
Undocumented |
Bind failure storage to a framework database connection.
| Parameters | |
connection:IConnection | Shared framework connection used for failure persistence. |
table:str, optional | Logical table name for recorded failures. |
| Returns | |
None | Complete the documented operation without returning a value. |
Leave the shared database connection under its manager's ownership.
| Returns | |
None | Preserve the framework-managed connection lifecycle. |
async def record(self, reserved:
ReservedJob, connection: str, exception: Exception) -> FailedJob:
(source)
¶
Record a terminal failure once for this reservation token.
| Parameters | |
reserved:ReservedJob | Reservation whose encoded envelope must remain retryable. |
connection:str | Queue connection on which the job failed. |
exception:Exception | Original failure including its traceback. |
| Returns | |
FailedJob | Persisted failure or its existing idempotent record. |