Command line tools¶
Juturna is run as a Python module:
(.venv) $ python -m juturna <command> [options]
python -m juturna --help lists the commands, and
python -m juturna <command> --help the options of each.
command |
group |
what it does |
|---|---|---|
|
core |
run a pipeline from its configuration file |
|
core |
check a configuration file |
|
core |
create the skeleton of a node |
|
pipebuilder |
build a configuration file interactively |
|
httpwrapper |
start the pipeline service |
|
warp |
start the remote node service |
Commands of a group other than core are available when Juturna is
installed with that optional group (see Install).
launch¶
Run a pipeline. Without --auto, the command waits for enter before
starting the pipeline, and again before stopping it.
Option |
Meaning |
|---|---|
|
The pipeline configuration file. Required. |
|
Start without prompting. The pipeline runs until all its nodes have
stopped, or for |
|
With |
|
Graph Instance oNly: build and warm up the nodes, then destroy the pipeline without running it. |
|
|
validate¶
Check a configuration file without building any node. The checks, in order:
the JSON is well formed, pipeline has a name and the nodes and
links lists, nodes and links are well formed, transport and telemetry are
valid, node types are installed (configuration keys a node does not know are
reported as warnings), the graph has no cycle. id and folder are not
checked: a configuration without them is valid but does not launch.
The command prints one line per check, with warnings below it, then valid
or invalid. It exits with status 0 when every check passes, 1 otherwise.
Option |
Meaning |
|---|---|
|
The pipeline configuration file. Required. |
|
Also save the results as JSON: every check with its outcome, error and warnings, and the layers of the graph. |
|
As in |
stub¶
Create the skeleton of a node in
<destination>/juturna/contrib/<package>/nodes/_<node name>/ and register
it in the __init__.py of the nodes package. Run it from the root of a
node repository.
Option |
Meaning |
|---|---|
|
Name of the node folder and module, in snake case. Required. |
|
The contrib package the node belongs to. Required. |
|
Class name. By default the node name in camel case
( |
|
Written in the header of the node file. |
|
Source folder of the repository. Default: |
create¶
Start the interactive pipeline builder, which lists the nodes installed in
the juturna.nodes, juturna.extensions and juturna.contrib
namespaces. It takes no options. Inside the builder, .help lists the
commands.
serve¶
Start the pipeline service. See Run pipelines behind an HTTP service and HTTP API of the pipeline service.
Option |
Meaning |
|---|---|
|
Port to listen on. Required. |
|
Where the pipelines keep their folders. Required. |
|
Address to listen on. Default: |
|
Logging configuration, a JSON file for |
|
File of |
|
A variable of the service environment that configurations can read
with |
|
Development mode: allow cross-origin requests. |
|
Do not require the service token. |
The token is read from the JUTURNA_SERVICE_TOKEN environment variable.
When it is not set, a random one is printed at startup.
remotize¶
Start the remote node service: one node, served over gRPC to the warp nodes of other pipelines. See Run a node on another machine and Remote components.
Option |
Meaning |
|---|---|
|
Name given to the node. Required. |
|
Type of the node, as in a pipeline configuration. Required. |
|
JSON file with the configuration of the node. |
|
Pipeline name the node logs under. |
|
Address to listen on. Default: |
|
Port to listen on. Default: |
|
Worker threads. Default: 10. |
|
Requests accepted at once, in progress or waiting for a worker. Default: 10 for each worker. |
|
Sticky warp nodes the service keeps a state for. Default: 1024. |
|
Fail a request with |
|
Log level of the service and the node. Default: |
The command exits with status 1 when the node cannot be built or the address is already in use.