
File system RealtimeTrigger
CertifiedTrigger on incoming TCP messages
File system RealtimeTrigger
Trigger on incoming TCP messages
Listens on a TCP port and fires immediately when data is received. Default bind host 0.0.0.0, UTF-8 decoding. Stops when trigger is canceled or kill/stop is called.
type: io.kestra.plugin.fs.tcp.RealtimeTriggerExamples
Trigger a flow whenever a TCP message is received.
id: tcp_realtime
namespace: dev
triggers:
- id: tcp_listener
type: io.kestra.plugin.fs.tcp.RealtimeTrigger
host: 0.0.0.0
port: 9090
tasks:
- id: log_message
type: io.kestra.plugin.core.log.Log
message: "Received {{ trigger.payload }} from {{ trigger.sourceIp }}"
Properties
port *Requiredintegerstring
TCP port to listen on
allowConcurrent Non-dynamicboolean
falseSpecifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.
encoding string
UTF-8Encoding for incoming data
host string
0.0.0.0Interface to bind
stopAfter Non-dynamicarray
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDList of execution states after which a trigger should be stopped (a.k.a. disabled).
when string
trueA condition that determines whether the trigger should run.
A Pebble expression evaluated at trigger time. The trigger fires only when the expression evaluates to a truthy value (true, a non-empty string, a non-zero number). Use this to gate trigger execution on dynamic runtime values such as execution labels, flow variables, or environment conditions.
Outputs
payload string
The received TCP payload
sourceIp string
The IP address of the sender
sourcePort integer
The port of the sender
timestamp string
date-timeThe timestamp when the message was received