Consume
Consume messages from a Pub/Sub topic.
Requires a maxDuration or a maxRecords.
yaml
type: "io.kestra.plugin.gcp.pubsub.Consume"
yaml
id: gcp_pubsub_consume
namespace: company.team
tasks:
- id: consume
type: io.kestra.plugin.gcp.pubsub.Consume
topic: topic-test
maxRecords: 10
projectId: {{ secret('GCP_PROJECT_ID') }}
subscription: my-subscription
Dynamic
YES
The Pub/Sub subscription.
The Pub/Sub subscription. It will be created automatically if it didn't exist and 'autoCreateSubscription' is enabled.
Dynamic
YES
The Pub/Sub topic
The Pub/Sub topic. It must be created before executing the task.
Dynamic
YES
Default
true
Dynamic
YES
The GCP service account to impersonate.
Dynamic
YES
Format
duration
Max duration in the Duration ISO format, after that the task will end.
Dynamic
YES
Dynamic
YES
The GCP project ID.
SubType string
Dynamic
YES
Default
["https://www.googleapis.com/auth/cloud-platform"]
The GCP scopes to be used.
Dynamic
YES
Default
STRING
Possible Values
STRING
JSON
The serializer/deserializer to use.
Dynamic
YES
The GCP service account.
Number of consumed rows.
Format
uri
File URI containing consumed messages.