Skip to content

A pipeline engine is a ready-work loop

Running a node again on a later pass, as a loop going round again does, is what makes loops possible at all, and the empty pass is what defines the end of the run.

The rule

Normative: this is the rule
  1. A pipeline engine MUST repeatedly ask for the work that is ready.
  2. Each pass MUST promote every idle unit of work whose dependencies are met to pending, and MUST persist that promotion.
  3. It MUST then return all pending work (including work already pending from an earlier pass), ordered ascending by priority, so that a lower priority number runs first.
  4. A unit whose dependencies are unmet MUST be left idle and untouched, except that SG-21 skips one whose loop round has ended and that can no longer be satisfied.
  5. The engine MUST stop when a pass returns nothing.
  6. That empty return is what quiescence means, unless a job of the run is polling (PIPE-11).
  7. A polling job keeps the run running: the empty pass then decides no terminal status, and the engine MUST take the run up again when a check of that job falls due.

Why

Recorded under OPEN-25, OPEN-56, OPEN-60.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · ORC-9 · changed in spec 1.1