Liking cljdoc? Tell your friends :D

lambdacd.stepstatus.unify

Functions that implement logic to summarize a list of statuses into a single status. Commonly used in combination with unify-only-status as a :unify-results-fn to generate the status of a parent step from the statuses of child steps. These functions might return :unknown if a combination of statuses does not make sense to their scenario.

Functions that implement logic to summarize a list of statuses into a single status.
Commonly used in combination with `unify-only-status` as a `:unify-results-fn` to generate the status of a parent step from the statuses of child steps.
These functions might return `:unknown` if a combination of statuses does not make sense to their scenario.
raw docstring

successful-when-all-successfulclj

(successful-when-all-successful statuses)

Summarizes the given statuses pessimistically, e.g. returns :success only if all statuses were success and :failure if only a single status is :failure.

Used for scenarios where we expect all steps to succeeed, e.g. in-parallel control-flow. Also used as the default in execute-steps.

Summarizes the given statuses pessimistically, e.g. returns `:success` only if all statuses were success and `:failure` if only a single status is `:failure`.

Used for scenarios where we expect all steps to succeeed, e.g. `in-parallel` control-flow. Also used as the default in `execute-steps`.
sourceraw docstring

successful-when-one-successfulclj

(successful-when-one-successful statuses)

Summarizes the given statuses optimistically, e.g. returns :success if even one status is success or :running as long as a single status is :running.

Used for scenarios where we don't expect all steps to succeed, e.g. the either control-flow.

Summarizes the given statuses optimistically, e.g. returns `:success` if even one status is success or `:running` as long as a single status is `:running`.

Used for scenarios where we don't expect all steps to succeed, e.g. the `either` control-flow.
sourceraw docstring

unify-only-statusclj

(unify-only-status unify-status-fn)

Converts a function that can unify statuses into a unify-results-fn suitable for execute-steps

Converts a function that can unify statuses into a unify-results-fn suitable for execute-steps
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close