The guard up, switch and restart pass before they create or recreate
containers: refuse when a service the call would recreate is held by
another live section, naming the section and the agents that own it (card
20261113112930-07a70584). The decision is promote.ownership/conflicts;
this namespace only gathers its inputs: the services the call touches
and the active map.
allow? (the tool's allow_shared) lets a refused call through and the
answer names what it overrode. A failure to work out the services (compose
rejects the config) is reported under :ownership-check and never blocks:
the call itself will meet the same failure.
The guard `up`, `switch` and `restart` pass before they create or recreate containers: refuse when a service the call would recreate is held by another live section, naming the section and the agents that own it (card 20261113112930-07a70584). The decision is `promote.ownership/conflicts`; this namespace only gathers its inputs: the services the call touches and the active map. `allow?` (the tool's allow_shared) lets a refused call through and the answer names what it overrode. A failure to work out the services (compose rejects the config) is reported under :ownership-check and never blocks: the call itself will meet the same failure.
(check ctx p mode recreate?)Result<[Conflict]> of call mode on p (recreate? for a recreating
restart). A plain restart recreates nothing and answers [].
Result<[Conflict]> of call `mode` on `p` (`recreate?` for a recreating restart). A plain restart recreates nothing and answers [].
(guarded ctx p mode recreate? allow? f)Run f (a thunk answering a Result) unless another live section holds what
call mode on p would recreate; allow? runs it anyway and the ok
answer carries :shared-overridden, each holder row with :outcome {service
"recreated"|"kept"} read from the container ids before and after the
call (what the engine did), or :outcome-unknown true when the engine
cannot name its containers.
Run `f` (a thunk answering a Result) unless another live section holds what
call `mode` on `p` would recreate; `allow?` runs it anyway and the ok
answer carries :shared-overridden, each holder row with :outcome {service
"recreated"|"kept"} read from the container ids before and after the
call (what the engine did), or :outcome-unknown true when the engine
cannot name its containers.(refusal p found)The error refusing p because live sections hold what it would recreate.
The error refusing `p` because live sections hold what it would recreate.
(touched ctx p mode)Result<[service]>: what call mode (:up or :restart) on p would create
or recreate. :restart touches the named services, else the active entry's,
else the closure (as restart-profile!). :up touches the named services
under no_deps, else their depends_on closure.
Result<[service]>: what call `mode` (:up or :restart) on `p` would create or recreate. :restart touches the named services, else the active entry's, else the closure (as `restart-profile!`). :up touches the named services under no_deps, else their depends_on closure.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |