Pipeline configuration file¶
A pipeline is described by a JSON document. This page lists every key Juturna reads.
{
"version": "3.0.0",
"pipeline": {
"name": "my_pipeline",
"id": "my_pipeline_01",
"folder": "./run",
"telemetry": { "name": "csv", "target": "telemetry.csv" },
"nodes": [
{
"name": "source",
"type": "AudioFile",
"configuration": {}
},
{
"name": "sink",
"type": "contrib.acme.nodes.MySink",
"configuration": { "endpoint": "$JT_ENV_SINK_URL" },
"auto_dump": true
}
],
"links": [
{ "from": "source", "to": "sink" }
]
}
}
Top level¶
Key |
Required |
Meaning |
|---|---|---|
|
service only |
The Juturna version the file was written for. The pipeline service refuses a configuration without it; nothing else reads it yet. |
|
yes |
The pipeline, described below. |
Other top-level keys are ignored.
pipeline¶
Key |
Required |
Meaning |
|---|---|---|
|
yes |
Name of the pipeline, used by its loggers ( |
|
yes |
Identifier of the pipeline. The pipeline service replaces it with one of its own. |
|
yes |
Folder of the pipeline, created at warm up. It receives a copy of the
configuration ( |
|
yes |
List of nodes, see below. |
|
yes |
List of links, see below. |
|
no |
Turns telemetry on, see below. |
|
no |
How nodes run and exchange messages: |
|
no |
Object whose entries are added to every log record of the pipeline,
for formatters that print them (such as |
nodes¶
Key |
Required |
Meaning |
|---|---|---|
|
yes |
Name of the node, unique in the pipeline. It becomes a folder name:
up to 128 letters, digits, |
|
yes |
The node class. A bare class name ( |
|
yes |
Arguments of the node, overriding the defaults of its
|
|
no |
When |
|
no |
When |
|
if warped |
Configuration of the |
|
no |
For a warped node, where its state lives: on the remote service
( |
|
no |
The worker the node runs in, for transports with several workers
( |
links¶
Each link is an object with from and to, the names of two nodes.
Messages transmitted by from are delivered to to. A node can have
several links in each direction. A link cannot be repeated, and the links
cannot form a cycle.
telemetry¶
An object with the name of a telemetry manager and its options. Without
this key, telemetry is off.
|
Options |
What it does |
|---|---|---|
|
|
Writes the records to the file |
|
|
Keeps the latest records in memory. The pipeline service returns them from its telemetry endpoint. |
|
|
Like |
A record has these fields, in this order:
Field |
Meaning |
|---|---|
|
When the event was recorded, as a Unix timestamp. |
|
|
|
The node recording the event. |
|
The node that created the message. |
|
Id of the message. |
|
Id of the message its creator was processing when it transmitted this one, which links an output to the input it comes from. Empty for a message that was not transmitted yet. |
|
Size of the payload in bytes, 0 when the payload has no size. |
|
The worker the node runs in. |