Skip to content

fix(gcppubsub): create subscriptions that never expire - #1066

Open
alexluong wants to merge 1 commit into
mainfrom
fix/gcppubsub-subscription-expiration
Open

fix(gcppubsub): create subscriptions that never expire#1066
alexluong wants to merge 1 commit into
mainfrom
fix/gcppubsub-subscription-expiration

Conversation

@alexluong

Copy link
Copy Markdown
Collaborator

Pub/Sub applies a default expiration policy that deletes a subscription after 31 days without subscriber activity. The dead-letter subscription has no consumer, so it expires and dead-lettered messages are dropped until the next Declare recreates it. This sets ExpirationPolicy to never on both the main and dead-letter subscriptions.

Testing: go build ./..., go vet ./internal/mqinfra/..., go test -short ./internal/mqinfra/...; new TestIntegrationMQInfra_GCPPubSub_SubscriptionsNeverExpire passes against the emulator and fails without the fix.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WSUm1ZBeUurupWpGWwE8NM

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WSUm1ZBeUurupWpGWwE8NM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant