Skip to main content

Module group

Module group 

Source
Expand description

Composite steps: child steps grouped under one name.

A composite step has no command of its own. Its children are steps like any other, each cached by itself, and the group is flattened when a job is planned, so the scheduler, the cache and the result file only ever see leaves. A cache unit is the other kind of step with children: it is kept whole, and its children are cached only as part of it.

Flattening a composite step P:

  • each child C becomes a step named P/C, and a nested composite’s children P/C/D;
  • a child runs after what P runs after, and has P’s prechecks;
  • an artefact P exports, C.OUT, is read from P/C’s OUT, and a step that only runs after P runs after every child.

Structs§

Groups 🔒
What flattening a level of steps made of its composite steps: the leaves each became, and where each of its exports is written.

Functions§

flatten
Replace every composite step in steps, and in the children of cache units, with its children, named from it.
flatten_group 🔒
The leaves a composite step parent becomes, under its name, and where each of its exports is written.
flatten_level 🔒
named
The steps a name given on the command line stands for: the step of that name, or every leaf of the composite step of that name.
rewire 🔒
Point step at the leaves of the composite steps it reads from or runs after.