Skip to content

Add shutdown options for the client classes #7630

@feywind

Description

@feywind

We are planning to add updates to the close() methods to allow for a more deterministic shutdown process. This will take care of issues like these:

googleapis/nodejs-pubsub#1860
googleapis/nodejs-pubsub#1856
googleapis/nodejs-pubsub#1665
googleapis/nodejs-pubsub#1648

The three options boil down to this:

  • Wait for everything to finish dequeuing
  • Bail immediately (and maybe return IDs of things that were pending)
  • Nack everything in the queue and wait for those to send

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.priority: p3Desirable enhancement or 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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions