Apache Pulsar Consume

Apache Pulsar Consume

Certified

Consume messages from Pulsar topics

Subscribes to one or more topics, acknowledges messages after batch receive, and writes them to Kestra storage. Defaults: deserializer STRING, poll timeout 2s, subscription type Exclusive starting at Earliest.

yaml
type: io.kestra.plugin.pulsar.Consume
yaml
id: pulsar_consume
namespace: company.team

tasks:
  - id: consume
    type: io.kestra.plugin.pulsar.Consume
    uri: pulsar://localhost:26650
    topic: test_kestra
    deserializer: JSON
    subscriptionName: kestra_flow
Properties
DefaultSTRING
Possible Values
STRINGJSONBYTES

Value deserializer

Subscription name

Identifies the subscription so only unconsumed records for that subscription are fetched.

Source topic(s)

Single topic or list of topics to consume.

Pulsar service URL

One or more Pulsar protocol URLs, e.g. pulsar://localhost: 6650 or pulsar://host1: 6650,host2: 6651. Use pulsar+ssl:// when enabling TLS.

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

Authentication token

Token used when the broker requires token-based auth (e.g., hosted providers).

Consumer name

Optional name reused on reconnects; helps coordinate with broker policies.

Consumer properties

Key/value properties applied to the Pulsar consumer builder.

Public encryption key

Key used for payload encryption/decryption when the topic is secured.

DefaultEarliest
Possible Values
LatestEarliest

Initial subscription position

Where to start consuming (default Earliest).

Maximum read duration

Soft timeout evaluated each second; stops when exceeded.

Maximum records before stop

Soft limit evaluated each second; stops after this many messages if set.

DefaultPT2S

Poll wait duration

Maximum time to wait for a new record when none are immediately available.

Topic schema definition

JSON representation of the topic schema when schema enforcement is enabled.

DefaultNONE
Possible Values
NONEAVROJSON

Topic schema type

One of NONE (default, no enforcement), AVRO, or JSON.

DefaultExclusive
Possible Values
ExclusiveSharedFailoverKey_Shared

Subscription type

Delivery semantics such as Exclusive (default), Shared, or Failover.

TLS options

Certificate/key material for TLS client authentication. Requires a pulsar+ssl:// URL.

Definitions
castring

CA certificate

Base64-encoded PEM of the trusted CA chain.

certstring

Client certificate

Base64-encoded PEM content for the client certificate.

keystring

Client key

Base64-encoded PEM private key matching the client certificate.

Number of messages consumed

Formaturi

URI of Kestra storage file with consumed messages