RealtimeTrigger RealtimeTrigger

yaml
type: "io.kestra.plugin.amqp.RealtimeTrigger"

Consume a message in real-time from an AMQP queue and create one execution per message.

If you would like to consume multiple messages processed within a given time frame and process them in batch, you can use the io.kestra.plugin.amqp.Trigger instead.

Examples

Consume a message from a AMQP queue in real-time.

yaml
id: amqp
namespace: dev

tasks:
- id: log
  type: io.kestra.plugin.core.log.Log
  message: "{{ trigger.data }}"

triggers:
- id: realtime_trigger
  type: io.kestra.plugin.amqp.RealtimeTrigger
  url: amqp://guest:guest@localhost:5672/my_vhost
  queue: amqpTrigger.queue

Properties

consumerTag

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Default: Kestra

A client-generated consumer tag to establish context.

queue

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

The queue to pull messages from.

serdeType

  • Type: string
  • Dynamic:
  • Required: ✔️
  • Default: STRING
  • Possible Values:
    • STRING
    • JSON

Serializer / Deserializer used for the message.

conditions

  • Type: array
  • SubType: Condition
  • Dynamic:
  • Required:

List of conditions in order to limit the flow trigger.

host

  • Type: string
  • Dynamic: ✔️
  • Required:

The broker host.

password

  • Type: string
  • Dynamic: ✔️
  • Required:

The broker password.

port

  • Type: string
  • Dynamic: ✔️
  • Required:

The broker port.

stopAfter

  • Type: array
  • SubType: string
  • Dynamic:
  • Required:

List of execution states after which a trigger should be stopped (a.k.a. disabled).

username

  • Type: string
  • Dynamic: ✔️
  • Required:

The broker username.

virtualHost

  • Type: string
  • Dynamic: ✔️
  • Required:

The broker virtual host.

Outputs

appId

  • Type: string
  • Dynamic:
  • Required:

contentEncoding

  • Type: string
  • Dynamic:
  • Required:

contentType

  • Type: string
  • Dynamic:
  • Required:

correlationId

  • Type: string
  • Dynamic:
  • Required:

data

  • Type: object
  • Dynamic:
  • Required:

deliveryMode

  • Type: integer
  • Dynamic:
  • Required:

expiration

  • Type: string
  • Dynamic:
  • Required:
  • Format: duration

headers

  • Type: object
  • Dynamic:
  • Required:

messageId

  • Type: string
  • Dynamic:
  • Required:

priority

  • Type: integer
  • Dynamic:
  • Required:

replyTo

  • Type: string
  • Dynamic:
  • Required:

timestamp

  • Type: string
  • Dynamic:
  • Required:
  • Format: date-time

userId

  • Type: string
  • Dynamic:
  • Required:

Definitions

Was this page helpful?