Trigger Trigger

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

Wait for message in AMQP queue

Examples

yaml
id: "trigger"
type: "io.kestra.plugin.amqp.Trigger"
url: amqp://guest:guest@localhost:5672/my_vhost
maxRecords: 2
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

url

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

The connection string

interval

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

Interval between polling

The interval between 2 different test of schedule, this can avoid to overload the remote system with too many call. For most of trigger that depend on external system, a minimal interval must be at least PT30S. See ISO_8601 Durations for more information of available interval value

maxDuration

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

The max duration waiting for new rows.

It's not an hard limit and is evaluated every second.

maxRecords

  • Type: integer
  • Dynamic:
  • Required:

The max number of rows to fetch before stopping.

It's not an hard limit and is evaluated every second.

Outputs

count

  • Type: integer

Number of row consumed.

uri

  • Type: string

File URI containing consumed message.