Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Should be possible to nack a message for delayed redelivery #255

Description

@mgabeler-lee-6rs

Environment details

  • OS: any
  • Node.js version: any
  • npm version: any
  • @google-cloud/pubsub version: current

Steps to reproduce

  1. Receive a message
  2. Decide that the message cannot be processed yet
  3. Don't want to block flow control by delaying before nacking
  4. Find yourself frustrated

This is something I'd been looking for for my application, but also came across in #119 (comment)

The suggestion there of adding an optional delay parameter to the nack method looks like exactly the trick.

Intending to file a PR for this unless I receive objections to the idea.

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the googleapis/nodejs-pubsub API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions