
Consume
Consume
yaml
type: "io.kestra.plugin.nats.core.Consume"Examples
yaml
id: nats_consume_messages
namespace: company.team
tasks:
- id: consume
type: io.kestra.plugin.nats.core.Consume
url: nats://localhost:4222
username: nats_user
password: nats_password
subject: kestra.>
durableId: someDurableId
pollDuration: PT5S
Properties
subject*Requiredstring
Min length
1url*Requiredstring
Min length
1batchSizeinteger
Default
10Minimum
>= 1credsstring
deliverPolicystring
Default
AllPossible Values
AllLastNewByStartSequenceByStartTimeLastPerSubjectdurableIdstring
maxDurationstring
Format
durationmaxRecordsintegerstring
passwordstring
pollDurationstring
Default
PT2SFormat
durationsincestring
tokenstring
usernamestring
Outputs
messagesCountinteger
uristring
Format
uri