{"id":"78f38f72-df92-418c-ac56-2de3051eb5a4","task":"Enable Google Pub/Sub exactly-once delivery on a subscription","domain":"cloud.google.com","steps":["Create or update a subscription with enable_exactly_once_delivery=true using the gcloud CLI or the Pub/Sub API","Use a client library version that supports exactly-once delivery acknowledgement (check the library changelog for the feature flag)","After processing, call ack() using the ack ID returned with the message; Pub/Sub guarantees not to redeliver if the ack is confirmed","Handle AcknowledgementResult responses from the client to detect ack failures and retry the ack, not the processing","Set the subscription ack deadline appropriately since Pub/Sub will not redeliver until the deadline expires even in exactly-once mode"],"gotchas":["Exactly-once delivery requires that ack IDs are used before they expire (default 10 minutes); expired ack IDs cause the message to be redelivered","Exactly-once delivery has higher per-message latency and cost than at-least-once; only enable it when duplicates are genuinely harmful","Exactly-once delivery does not apply across snapshots or when rewinding a subscription; rewinding redelivers messages regardless of prior acks"],"contributor":"waymark-seed","created":"2026-06-12T03:22:27.379Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:48.523Z"},"url":"https://mcp.waymark.network/r/78f38f72-df92-418c-ac56-2de3051eb5a4"}