The core of pipeline. This is where the definition and running of the pipelines exists.
The core of pipeline. This is where the definition and running of the pipelines exists.
(action step-name f inputs)
(action step-name f inputs output)
(action step-name f inputs output output-spec)
(action step-name f inputs output output-spec bindings)
(action step-name f inputs output output-spec bindings validation-fns)
(args pipeline)
Returns the args used when run-pipeline was called on this pipeline. Will return nil on a pipeline that has not been started
Returns the args used when run-pipeline was called on this pipeline. Will return nil on a pipeline that has not been started
(args-for-step step state options)
(bindings pipeline-or-step)
Returns the bindings of a pipeline or a step.
Returns the bindings of a pipeline or a step.
(failed-step pipeline)
Returns the first failed step of a pipeline.
Returns the first failed step of a pipeline.
(failed-steps pipeline)
Returns all failed steps of a pipeline.
Returns all failed steps of a pipeline.
(failed? pipeline-or-step)
Returns true if the pipeline or a step was failed.
Returns true if the pipeline or a step was failed.
(failure-message step)
(failure-reason step)
(failure-value step)
(last-executed-step pipeline)
(last-run)
Returns the stored result from the last call to run-pipeline
Returns the stored result from the last call to run-pipeline
(make-pipeline pipeline-bindings & steps-and-pipelines)
(make-step step-type
step-name
f
inputs
output
output-spec
bindings
validation-fns)
(next-step pipeline)
(not-started? pipeline-or-step)
Returns true if the pipeline or a step or not started.
Returns true if the pipeline or a step or not started.
(pipeline-finished? pipeline)
(pipeline? pipeline)
Returns true if given a valid pipeline
Returns true if given a valid pipeline
(resolve-spec var-or-any)
(result pipeline-or-step)
Returns the result from a successful step or from a successful pipeline. If the arg is a pipeline, the result is the result of the last step.
If called on a step that is not successful or a pipeline that is not successful, an exception is thrown.
Returns the result from a successful step or from a successful pipeline. If the arg is a pipeline, the result is the result of the last step. If called on a step that is not successful or a pipeline that is not successful, an exception is thrown.
(run-pipeline pipeline args)
(run-pipeline pipeline args options)
Executes a pipeline and returns the full execution context as a result. In the execution context, result and errors can be found, but also a full trace of each step's input, result and time spent.
Options can be given to run-pipeline, but there are not yet any options defined.
Even though run-pipeline returns the full execution context, it's recommended to use the helper functions in this package to extract data for common tasks. This protects you slightly from breaking changes in the data structure since this is still pre-alpha.
The last pipeline result (the full execution context) is stored in pipeline.core/*pipeline-run as well as returned
Executes a pipeline and returns the full execution context as a result. In the execution context, result and errors can be found, but also a full trace of each step's input, result and time spent. Options can be given to run-pipeline, but there are not yet any options defined. Even though run-pipeline returns the full execution context, it's recommended to use the helper functions in this package to extract data for common tasks. This protects you slightly from breaking changes in the data structure since this is still pre-alpha. The last pipeline result (the full execution context) is stored in pipeline.core/*pipeline-run as well as returned
(run-step f args output-schema state validation-fns options)
Runs a single step. This is called from run-pipeline and normally not used directly, but is still public since it can be useful during development.
Runs a single step. This is called from run-pipeline and normally not used directly, but is still public since it can be useful during development.
(scope-pipeline input-paths output-path & steps-and-pipelines)
Scopes a pipeline to isolate it from the surrounding scope.
Scopes the input-paths and output-path for all steps, and replace the first step's input-path and the last step's output-path with the provided ones.
Scopes a pipeline to isolate it from the surrounding scope. Scopes the input-paths and output-path for all steps, and replace the first step's input-path and the last step's output-path with the provided ones.
(state pipeline-or-step)
Returns the state of a pipeline or a step.
Returns the state of a pipeline or a step.
(state? state-value pipeline-or-step)
Returns the state for a pipeline or a step
Returns the state for a pipeline or a step
(step pipeline step-name)
Returns a named or numbered (seq-id) step in a pipeline
Returns a named or numbered (seq-id) step in a pipeline
(step-path pipeline step)
(step? pipeline)
Returns true if given a valid step
Returns true if given a valid step
(steps pipeline)
Returns the steps in a pipeline
Returns the steps in a pipeline
(steps? pipeline)
Returns true is given a vector of steps
Returns true is given a vector of steps
(successful? pipeline-or-step)
Returns true if the pipeline or a step was successful.
Returns true if the pipeline or a step was successful.
(transformation step-name f inputs output)
(transformation step-name f inputs output output-spec)
(transformation step-name f inputs output output-spec bindings)
(transformation step-name f inputs output output-spec bindings validation-fns)
(update-pipeline pipeline step)
(update-state state step)
(update-step step args result)
(validation-functions step)
Returns the validation functions for a step
Returns the validation functions for a step
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close