Google Cloud PubSub Acknowledge

Overview

You can use this Snap to acknowledge the messages by reading the message ID from the upstream Subscriber Snap.


Google Cloud PubSub Acknowledge overview

Snap views

Type Description Examples of upstream and downstream Snaps
Input

Document

  • Min: 0
  • Max: 1

Each document contains data in the form of JSON.

  • Mapper
  • JSON Generator
  • CSV Parser
Output

Document

  • Min: 0
  • Max: 1

Each document contains a corresponding response in the form of JSON.

  • JSON Generator
Learn more about Error handling.

Snap settings

Note: Learn about the common controls in the Snap settings dialog.
Field/Field set Description
Label

String

Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline.

Default value: PubSub Acknowledge

Example: Acknowledge messages

Message ID

String/Expression

Specify the ID of the message to be acknowledged.

Default value: N/A

Example: 1995734534087794

Acknowledgement type

Dropdown list

Choose the acknowledgement action type for the received message. Available options are:

  • Acknowledge: Acknowledges the messages within the default deadline.
  • Negative acknowledge: In Google Cloud Pub/Sub, a negative acknowledge is a way for a subscriber to explicitly indicate that it was unable to successfully process a message, and that the message should be re-delivered sooner than the acknowledgment deadline allows. When a subscriber nacks messages that are invalid or when it cannot process the messages, the subscriber helps ensure that these messages are not lost and that they are eventually processed successfully.

Default value: Acknowledge

Example: Negative acknowledge

Snap Execution

Dropdown list

Choose one of the three modes in which the Snap executes. Available options are:
  • Validate & Execute: Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.
  • Execute only: Performs full execution of the Snap during pipeline execution without generating preview data.
  • Disabled: Disables the Snap and all Snaps that are downstream from it.

Default value: Execute only

Example: Validate & Execute