Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

fix: set stream_ack_deadline to max_duration_per_lease_extension or 60 s, set ack_deadline to min_duration_per_lease_extension or 10 s - #760

Merged
acocuzzo merged 3 commits into
googleapis:mainfrom
acocuzzo:set-streaming-ack-deadline
Aug 11, 2022
Merged

fix: set stream_ack_deadline to max_duration_per_lease_extension or 60 s, set ack_deadline to min_duration_per_lease_extension or 10 s#760
acocuzzo merged 3 commits into
googleapis:mainfrom
acocuzzo:set-streaming-ack-deadline

Conversation

@acocuzzo

@acocuzzoacocuzzo commented Aug 11, 2022

Copy link
Copy Markdown
Contributor

When max_duration_per_lease_extension is set and within the 10 - 600 secs, the stream_ack_deadline will be set to max_duration_per_lease_extension, otherwise it will be set to 60 seconds to match Java client library behavior.

When min_duration_per_lease_extension is set and within the 10 - 600 sec, the ack_deadline will be initialized with this value, otherwise it will default to 10 sec.

Fixes#758🦕

@acocuzzo
acocuzzo requested review from a teamAugust 11, 2022 00:21
@product-auto-labelproduct-auto-labelBot added size: m Pull request size is medium. api: pubsub Issues related to the googleapis/python-pubsub API. labels Aug 11, 2022
@acocuzzoacocuzzo changed the title fix: set default streaming_ack_deadline to 60 and make configurablefix: set stream_ack_deadline to max_duration_per_lease_extension or 60 s, set ack_deadline to min_duration_per_lease_extension or 10 sAug 11, 2022
@acocuzzoacocuzzo added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 11, 2022
@gcf-owl-botgcf-owl-botBot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 11, 2022
@acocuzzoacocuzzo added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 11, 2022
@gcf-owl-botgcf-owl-botBot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 11, 2022
@acocuzzo
acocuzzo merged commit 4444129 into googleapis:mainAug 11, 2022
@release-pleaserelease-pleaseBot mentioned this pull request Aug 11, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: pubsubIssues related to the googleapis/python-pubsub API.size: mPull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set default stream_ack_deadline to 60 sec, or via max_duration_per_lease_extension

2 participants

@acocuzzo@maheshgattani