Adjustment of acknowledgement deadline for pubsub functions
See original GitHub issueWhen deploying a function the ack deadline is set to 10 mins (and cannot be changed in GCP) - is there anyway to change this and could it be added in to the .topic()
function builder?
As a side note I also tried to change it with glcoud
and got the following error:
> gcloud pubsub subscriptions update projects/<projectId>/subscriptions/<subscriptionId> --ack-deadline=180
ERROR: (gcloud.pubsub.subscriptions.update) INVALID_ARGUMENT: The supplied AppEngine URL project does not match the subscription's parent project (url="https://<some-random-uuid>.appspot.com/_ah/push-handlers/pubsub/projects/<projectId>/topics/<topicId>?pubsub_trigger=true", project_id="<projectId>").
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Method: projects.subscriptions.modifyAckDeadline
Modifies the ack deadline for a specific message. This method is useful to indicate that more time is needed to process a message...
Read more >google cloud platform - PubSub acknowledge deadline
I've increased the acknowledge deadline to 600s and redeployed everything but it's still retrying the message after 20 seconds. I am missing ...
Read more >After setting Acknowledgment Deadline, msgs still being ...
In the Pub sub console, I've created a subscription with an Acknowledgment Deadline of 600 seconds. The issue is that the same message...
Read more >Fine-tuning Pub/Sub performance with batch and flow control ...
Decrease ack latency by ack'ing messages at a higher rate. Increase ack deadline by adjusting setMaxExtensionPeriod() on a subscriber client. This gives ...
Read more >pubsub - Go Packages
Ack deadlines are extended periodically by the client. The initial ack deadline given to messages is based on the subscription's AckDeadline property, which ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry this bug has taken so long to get to. We are not going to add a timeout option to the
topic
function; you shouldn’t have to manually configure two different timeouts (function and subscription). We’re also going to leave the deadline at 600s.Instead, we’re working on the Pub/Sub infrastructure so that it notices hangups as a NACK. This means that any function which times out will be killed by our scheduler and cause a NACK on the pub/sub topic which will schedule the re-delivery immediately. This fix is currently rolling out to production.
https://issuetracker.google.com/issues/152149355 I’m getting “Access denied” for this link now…
Anyone any ideas why the ack deadline is set to 10 mins and not something just above the timeout of the function?