
AMQP Consume
CertifiedConsume AMQP messages until a stop condition
AMQP Consume
Consume AMQP messages until a stop condition
Consumes from a queue with manual ACK/NACK, writing messages to internal storage and returning their URI; requires maxDuration or maxRecords to stop. Defaults to consumer tag Kestra and serde type STRING.
type: io.kestra.plugin.amqp.ConsumeExamples
id: amqp_consume
namespace: company.team
tasks:
- id: consume
type: io.kestra.plugin.amqp.Consume
host: localhost
port: 5672
username: guest
password: "{{ secret('AMQP_PASSWORD') }}"
virtualHost: /my_vhost
queue: kestramqp.queue
maxRecords: 1000
Properties
host *Requiredstring
Broker host
Hostname or IP of the RabbitMQ broker; required unless using the deprecated url.
queue *Requiredstring
Queue name to consume
AMQP queue to read from; required and must already exist.
serdeType *Requiredstring
STRINGSTRINGJSONPayload serde format
Controls how message bodies are read and written; use STRING for raw text or JSON for structured data. Defaults to STRING.
autoAck booleanstring
falseAutomatic acknowledgment
When true, the broker acknowledges messages as soon as they are delivered. When false, the task ACKs after processing and NACKs on failure.
consumerTag string
KestraConsumer tag
Client-supplied consumer tag used for tracing and cancellations; defaults to Kestra in tasks and triggers.
maxDuration string
Maximum duration
Soft cap on run time; checked roughly every 100 ms so actual runtime can slightly exceed this value. Required when maxRecords is not set.
maxRecords integerstring
Maximum records
Soft cap on messages consumed before stopping; evaluated after each ACKed message. Required when maxDuration is not set.
password string
Password
Password for the connection; required when the broker enforces authentication.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
port string
5672Broker port
TCP port for AMQP connections; defaults to 5672.
username string
Username
Username for the connection; uses broker default (often guest) when not set.
virtualHost string
/Virtual host
Broker virtual host path; defaults to /.
Outputs
count integer
Total messages consumed
Count of messages acknowledged before the stop condition was reached.
uri string
uriURI of file storing consumed messages
Internal storage path to the ION-serialized batch returned as taskrun.outputs.uri or trigger.uri.
Metrics
consumed.records counter
recordsThe total number of records consumed from the AMQP queue.