Pipeline Context Object

Pipeline Context Object#

The context object is available to pipelines as a required first argument ctx. Plugins may use these methods to invoke other registered actions or create artifacts.

Context.get_action(plugin, action)[source]#

Return a function matching the callable API of an action. This function is aware of the pipeline context and manages its own cleanup as appropriate.

Context.make_artifact(type, view, view_type=None)[source]#

Return a new artifact from a given view.

This artifact is automatically tracked and cleaned by the pipeline context.