Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix maxAckDeadline in GCP pub/sub puller #141

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

AL333Z
Copy link
Member

@AL333Z AL333Z commented Jan 10, 2025

Since in GCP Pub/Sub there's no support for pushing delayed messages, currently the puller is responsible to implement that with a workaround that consists of receiving, checking and setting a proper ack deadline to the message, so that the infra will re-deleliver that after a while.

This PR is fixing an issue spotted while specifying a delay > 10 min. The puller was failing with

Caused by: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Invalid ack deadline given (ack_deadline=715). The ack deadline must be between 0 and 600 seconds.

@AL333Z AL333Z merged commit e10e1d7 into main Jan 10, 2025
10 checks passed
@AL333Z AL333Z deleted the gcp-pub-sub-max-ack-deadline branch January 10, 2025 11:23
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