Serialize concurrent datasource publications

This commit is contained in:
2026-08-04 12:48:37 +02:00
parent 067c8273b6
commit 4053543816
5 changed files with 117 additions and 4 deletions
+6
View File
@@ -90,6 +90,12 @@ changed quality policy. Publication also emits a transactional
module stores it in the durable outbox, while reduced installations deliver it
through Core after commit.
PostgreSQL deployments serialize publication attempts by tenant, producer, and
idempotency key with a transaction-scoped advisory lock before replay lookup.
This makes concurrent retries from separate API or worker nodes converge on the
same publication and materialization rather than relying on a late uniqueness
failure after output rows have already been persisted.
Approval authority, approval expiry, and retention/deletion execution remain
separate work under `govoplan-datasources#2`. Until those contracts are added,
no JSON flag is treated as an approval and no stage is deleted automatically.