Skip to content

feat(pubsub): Support subscriber shutdown options#32792

Open
aandreassa wants to merge 1 commit intomainfrom
pubsub-sd
Open

feat(pubsub): Support subscriber shutdown options#32792
aandreassa wants to merge 1 commit intomainfrom
pubsub-sd

Conversation

@aandreassa
Copy link
Copy Markdown
Contributor

@aandreassa aandreassa commented Mar 4, 2026

feat(pubsub): Update minimum Ruby to v3.2 and support v4.0

This introduces structured background settings to standardize how active subscribers wrap up operations upon calling stop.

Updates subscription.listen to expose two new arguments:

  • shutdown_behavior: Supports :wait_for_processing (finishes existing messages before quitting) or :nack_immediately (releases outstanding leases at once).
  • shutdown_timeout: An optional threshold limit guiding the maximum timeframe for cleanup activities.

@aandreassa aandreassa force-pushed the pubsub-sd branch 2 times, most recently from 811696e to 4f38cd2 Compare April 14, 2026 16:42
feat(pubsub): Update minimum Ruby to v3.2 and support v4.0

This introduces structured background settings to standardize how active subscribers wrap up operations upon calling `stop`.

Updates `subscription.listen` to expose two new arguments:
* `shutdown_behavior`: Supports `:wait_for_processing` (finishes existing messages before quitting) or `:nack_immediately` (releases outstanding leases at once).
* `shutdown_timeout`: An optional threshold limit guiding the maximum timeframe for cleanup activities.
@aandreassa aandreassa marked this pull request as ready for review April 14, 2026 16:48
@aandreassa aandreassa requested review from a team and yoshi-approver as code owners April 14, 2026 16:48
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.

2 participants