TaskImportMode

class lsst.pipe.base.pipeline_graph.TaskImportMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Enumeration of the ways to handle importing tasks when reading a serialized PipelineGraph.

Attributes Summary

ASSUME_CONSISTENT_EDGES

Import tasks and instantiate their config and connection objects, but do not check that the connections still define the same edges.

DO_NOT_IMPORT

Do not import tasks or instantiate their configs and connections.

OVERRIDE_EDGES

Import tasks and instantiate their config and connection objects, and allow the edges defined in those connections to override those in the persisted graph.

REQUIRE_CONSISTENT_EDGES

Import tasks and instantiate their config and connection objects, and check that the connections still define the same edges.

Attributes Documentation

ASSUME_CONSISTENT_EDGES = 3

Import tasks and instantiate their config and connection objects, but do not check that the connections still define the same edges.

This is safe only when the caller knows the task definition has not changed since the pipeline graph was persisted, such as when it was saved and loaded with the same pipeline version.

DO_NOT_IMPORT = 1

Do not import tasks or instantiate their configs and connections.

OVERRIDE_EDGES = 4

Import tasks and instantiate their config and connection objects, and allow the edges defined in those connections to override those in the persisted graph.

This may cause dataset type nodes to be unresolved, since resolutions consistent with the original edges may be invalidated.

REQUIRE_CONSISTENT_EDGES = 2

Import tasks and instantiate their config and connection objects, and check that the connections still define the same edges.