예제 #1
0
    def get_pipeline_index(self):
        from dagster.core.snap import PipelineSnapshot
        from dagster.core.host_representation import PipelineIndex

        return PipelineIndex(
            PipelineSnapshot.from_pipeline_def(self), self.get_parent_pipeline_snapshot()
        )
예제 #2
0
    def get_pipeline_index(self):
        from dagster.core.snap import (
            PipelineSnapshot,
            PipelineSnapshotWithID,
        )
        from dagster.core.host_representation import PipelineIndex

        return PipelineIndex(
            PipelineSnapshotWithID.from_snapshot(
                PipelineSnapshot.from_pipeline_def(self)),
            PipelineSnapshotWithID.from_snapshot(
                self.get_parent_pipeline_snapshot())
            if self.parent_pipeline_def else None,
        )