Skip to content

feat(pubsub): configurable max lease#5005

Merged
dbolduc merged 1 commit intogoogleapis:mainfrom
dbolduc:feat-pubsub-max-lease
Mar 16, 2026
Merged

feat(pubsub): configurable max lease#5005
dbolduc merged 1 commit intogoogleapis:mainfrom
dbolduc:feat-pubsub-max-lease

Conversation

@dbolduc
Copy link
Copy Markdown
Member

@dbolduc dbolduc commented Mar 12, 2026

Fixes #4947

Let applications configure the max lease time - how long the client extends a message lease for before giving up.

nit: I am not overly concerned, about the hold time falling in the range of [max_lease, max_lease + max_lease_extension].

@product-auto-label product-auto-label bot added the api: pubsub Issues related to the Pub/Sub API. label Mar 12, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.68%. Comparing base (6fc1d41) to head (281eb87).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5005      +/-   ##
==========================================
+ Coverage   92.66%   92.68%   +0.01%     
==========================================
  Files         226      226              
  Lines        8688     8693       +5     
==========================================
+ Hits         8051     8057       +6     
+ Misses        637      636       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dbolduc dbolduc marked this pull request as ready for review March 13, 2026 00:28
@dbolduc dbolduc requested a review from a team as a code owner March 13, 2026 00:28
@dbolduc dbolduc force-pushed the feat-pubsub-max-lease branch from ffefd1e to 281eb87 Compare March 16, 2026 18:08
@dbolduc dbolduc enabled auto-merge (squash) March 16, 2026 18:09
@dbolduc
Copy link
Copy Markdown
Member Author

dbolduc commented Mar 16, 2026

/gcbrun

1 similar comment
@dbolduc
Copy link
Copy Markdown
Member Author

dbolduc commented Mar 16, 2026

/gcbrun

@dbolduc
Copy link
Copy Markdown
Member Author

dbolduc commented Mar 16, 2026

welp, I guess I'll just try again

@dbolduc
Copy link
Copy Markdown
Member Author

dbolduc commented Mar 16, 2026

/gcbrun

@dbolduc dbolduc merged commit 0a6a4ef into googleapis:main Mar 16, 2026
35 checks passed
@dbolduc dbolduc deleted the feat-pubsub-max-lease branch March 16, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the Pub/Sub API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configurable subscriber lease deadline

2 participants