Google-cloud-node: Pubsub - Set timeout on ack method

Created on 10 Feb 2017  路  2Comments  路  Source: googleapis/google-cloud-node

Environment details

  • OS: Ubuntu 14.04
  • Node.js version: 4.4.2
  • npm version: 2.15.9
  • google-cloud-node version: 0.46.2

For some reason, this past week, I started to see that some of my messages were not being acked/delivered, and I have to wait for the ack deadline, as in this image:
image

I tried updating pubsub but wasn't successful.

I'd like to be able to set a timeout on ack request, so after some time it'd give me an error and I'd be able to retry the ack.

I found this on stackoverflow: http://stackoverflow.com/questions/41901108/acked-messages-are-lingering-at-the-google-pubsub it's very similar to what happens to me, but I don't know how I'd change the grpc behavior like this....

pubsub p2

Most helpful comment

Fixed in #2042.

All 2 comments

Thanks for reporting. As you've noticed, this currently isn't possible. To support, we would just need to allow an options.timeout property to the ack method, which we would pass through to gax. PR welcome if you're up for it!

Fixed in #2042.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jackzampolin picture jackzampolin  路  3Comments

chadbr picture chadbr  路  3Comments

VikramTiwari picture VikramTiwari  路  3Comments

sporkd picture sporkd  路  5Comments

charly37 picture charly37  路  3Comments