Skip to content

Drop leased messages after flow_control.max_lease_duration has passed.#5020

Merged
theacodes merged 2 commits into
googleapis:masterfrom
theacodes:pubsub-drop-long-leases
Mar 13, 2018
Merged

Drop leased messages after flow_control.max_lease_duration has passed.#5020
theacodes merged 2 commits into
googleapis:masterfrom
theacodes:pubsub-drop-long-leases

Conversation

@theacodes
Copy link
Copy Markdown
Contributor

Closes #5005

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 12, 2018
for item in items:
if item.ack_id in self.managed_ack_ids:
self.managed_ack_ids.remove(item.ack_id)
try:

This comment was marked as spam.

This comment was marked as spam.

)
_LOGGER.debug('Renewing lease for %d ack IDs.', len(ack_ids))

# NOTE: This may not work as expected if ``consumer.active``

This comment was marked as spam.

This comment was marked as spam.

['max_bytes', 'max_messages', 'resume_threshold', 'max_requests',
'max_request_batch_size', 'max_request_batch_latency'],
'max_request_batch_size', 'max_request_batch_latency',
'max_lease_duration'],

This comment was marked as spam.

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants