Liking cljdoc? Tell your friends :D

hive-compose.pipeline.orphans

The guard up, switch and restart pass before they start or recreate anything: refuse while processes a dead rootless dockerd left behind still hold a volume or a host port of the services about to start (incident 20261105135748-5afc73f2: a recreated postgres ran beside the orphan postmaster on the same data dir).

The guard runs only when the context has a process table (:processes, IProcessTable) and the engine answers IContainerOwnership. When the process table or the engine cannot answer, the guard says so in the result (:orphan-check) and lets the call through: it never blocks on its own failure. allow? (the tool's allow_orphans) lets a call through that it would refuse, naming what it overrode.

The guard `up`, `switch` and `restart` pass before they start or recreate
anything: refuse while processes a dead rootless dockerd left behind still
hold a volume or a host port of the services about to start (incident
20261105135748-5afc73f2: a recreated postgres ran beside the orphan
postmaster on the same data dir).

The guard runs only when the context has a process table (:processes,
IProcessTable) and the engine answers IContainerOwnership. When the
process table or the engine cannot answer, the guard says so in the
result (:orphan-check) and lets the call through: it never blocks on its
own failure. `allow?` (the tool's allow_orphans) lets a call through
that it would refuse, naming what it overrode.
raw docstring

checkclj

(check ctx p)

Result<{:orphans [Orphan] :resources}> for starting p, Result err when a read failed.

Result<{:orphans [Orphan] :resources}> for starting `p`, Result err when a
read failed.
sourceraw docstring

enabled?clj

(enabled? ctx)

True when ctx can look for orphans.

True when `ctx` can look for orphans.
sourceraw docstring

guardedclj

(guarded ctx p allow? f)

Run f (a thunk answering a Result) unless orphans hold what p would start; allow? runs it anyway. The ok answer carries :orphans-overridden when it overrode, :orphan-check when the check itself could not run.

Run `f` (a thunk answering a Result) unless orphans hold what `p` would
start; `allow?` runs it anyway. The ok answer carries :orphans-overridden
when it overrode, :orphan-check when the check itself could not run.
sourceraw docstring

override-paramclj

source

refusalclj

(refusal p found)

The error refusing p because found orphans hold its resources.

The error refusing `p` because `found` orphans hold its resources.
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