symfonic.memory.backends.postgres_receipt_selected¶
postgres_receipt_selected ¶
Selected-publication checks for the opt-in PostgreSQL receipt domain.
ReceiptSelected ¶
SourceWriteRefused ¶
Bases: MemoryContractError
The accepted source WRITE is absent, inexact or no longer this manifest.
Permanent: a retry re-reads the same durable receipt and refuses again.
bound_write_selected ¶
Bind this task's next selected publication to its source WRITE.
Source code in src/symfonic/memory/backends/postgres_receipt_selected.py
committed_manifest_on
async
¶
The source WRITE's COMMITTED manifest, share-locked on conn.
Source code in src/symfonic/memory/backends/postgres_receipt_selected.py
operation_for_selected_write ¶
operation_for_selected_write(operation_id: str, write: MemoryOperation, manifest: Any) -> MemoryOperation
Canonical FLUSH of exactly one accepted WRITE's durable manifest.
Source code in src/symfonic/memory/backends/postgres_receipt_selected.py
require_selected_write ¶
Refuse any FLUSH other than the canonical one for this durable manifest.