Consume
yaml
type: "io.kestra.plugin.nats.consume"
Examples
yaml
id: nats_consume_messages
namespace: company.team
tasks:
- id: consume
type: io.kestra.plugin.nats.Consume
url: nats://localhost:4222
username: nats_user
password: nats_password
subject: kestra.>
durableId: someDurableId
pollDuration: PT5S
Properties
subject *Requiredstring
Min length
1
url *Requiredstring
Min length
1
batchSize integer
Default
10
Minimum
>= 1
creds string
deliverPolicy string
Default
All
Possible Values
All
Last
New
ByStartSequence
ByStartTime
LastPerSubject
durableId string
maxDuration string
Format
duration
maxRecords integerstring
password string
pollDuration string
Default
PT2S
Format
duration
since string
token string
username string
Outputs
messagesCount integer
uri string
Format
uri