question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adjustment of acknowledgement deadline for pubsub functions

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
inlinedcommented, Jul 20, 2022

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.

0reactions
rhodgkinscommented, Nov 22, 2021

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found