Skip to content

Pubsub - Set timeout on ack method #1979

Description

@askmon

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

Activity

  1. stephenplusplus commented on Feb 10, 2017

    @stephenplusplus
    Contributor

    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!

  2. stephenplusplus commented on Mar 27, 2017

    @stephenplusplus
    Contributor

    Fixed in #2042.

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

Metadata

Metadata

Labels

api: pubsubIssues related to the Pub/Sub API.priority: p2Moderately-important priority. Fix may not be included in next release.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions