Liking cljdoc? Tell your friends :D

hive-compose.pipeline.data

Runs the data lifecycle (hc-9) of a recorded stack run: the steps hive-compose.promote.data/lifecycle-plan renders for a phase, in order, through the ports. An :exec step goes to the engine's port/IDataExec (docker exec into the instance's running container), a :host step to the runner's port/ICommandRunner in the provider project's dir, a :state step (a prefix rotation) only advances the recorded state.

The data state of a run (generations per instance and consumer) lives under [:stacks run :data] in the state, beside the run's plan, and is committed only when every step of the phase succeeded: a failed phase run again renders the same steps (template databases tolerate already exists). Volumes are never removed: the plan refuses any argv that would.

hc8 suites call run-phase! [ctx run phase] around and between suites.

Runs the data lifecycle (hc-9) of a recorded stack run: the steps
`hive-compose.promote.data/lifecycle-plan` renders for a phase, in order,
through the ports. An :exec step goes to the engine's `port/IDataExec`
(docker exec into the instance's running container), a :host step to the
runner's `port/ICommandRunner` in the provider project's dir, a :state
step (a prefix rotation) only advances the recorded state.

The data state of a run (generations per instance and consumer) lives under
`[:stacks run :data]` in the state, beside the run's plan, and is committed
only when every step of the phase succeeded: a failed phase run again
renders the same steps (template databases tolerate `already exists`).
Volumes are never removed: the plan refuses any argv that would.

hc8 suites call `run-phase!` [ctx run phase] around and between suites.
raw docstring

current-prefixclj

(current-prefix ctx run iid consumer)

The tenancy prefix consumer uses on instance iid in run now.

The tenancy prefix `consumer` uses on instance `iid` in `run` now.
sourceraw docstring

data-stateclj

(data-state ctx run)

The data state recorded for run ({} before any phase ran).

The data state recorded for `run` ({} before any phase ran).
sourceraw docstring

plan-phaseclj

(plan-phase ctx run phase)

Result<{:phase :run :steps :state}>: the steps phase would run for run now. Runs nothing.

Result<{:phase :run :steps :state}>: the steps `phase` would run for `run`
now. Runs nothing.
sourceraw docstring

run-phase!clj

(run-phase! ctx run phase)

Result<{:run :phase :steps [row] :state}>: run the data lifecycle phase (:before-suite :between-suites :after) of recorded stack run run. Steps run in plan order and stop at the first failure, which answers :compose/data-step-failed carrying the rows so far; the data state is then left as it was. A run whose providers declare no lifecycle answers no steps.

Result<{:run :phase :steps [row] :state}>: run the data lifecycle `phase`
(:before-suite :between-suites :after) of recorded stack run `run`. Steps
run in plan order and stop at the first failure, which answers
:compose/data-step-failed carrying the rows so far; the data state is then
left as it was. A run whose providers declare no lifecycle answers no steps.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close