Pipelines: tour¶
From an example confdir to a running pipeline and back, with the commands and their Python equivalents.
Audience: Operator · See also: Pipelines · Operating · Configuration · Drift and resync
The tour uses pipelinebasic-conf, two milk-fpsexec-mem-streamdelay CompUs in a row. Example confdirs live in milk-examples/pipelines/ (aoloop-conf, pipelinebasic-conf); the test confdirs in python/tests/resources/ (pipelinebasic-conf, mlatsim-conf).
1. Get a confdir¶
2. Check and initialize¶
- Prints the resolved configuration; catches errors early.
- Runs the hooks and builds
~/pipes/basic-rootdir.
3. Deploy and link¶
milk-pipes state -p basic # (1)!
milk-pipes deploy -p basic # (2)!
milk-pipes link loopback -p basic # (3)!
cold: nothing deployed yet.-p basicmeans<cwd>/basic-rootdir.- Runs the deploy plan. The state becomes
configured. - Applies
[systemlinkage.loopback].
4. Start and stop the run processes¶
Python only: no CLI equivalent yet.
from milk.operate.pipeline import Pipeline
from milk.operate.tasks import RunStart, RunStop
pp = Pipeline("basic")
pp.task_do(RunStart) # (1)!
pp.task_do(RunStop(pp, ["delay1"])) # (2)!
- All CompUs.
- A subset.
5. Tear down¶
To change the configuration of a deployed pipeline, see Drift and resync.