Exemple #1
0
    def get_historical_pipeline(self, snapshot_id):
        from dagster.core.host_representation import HistoricalPipeline

        snapshot = self._run_storage.get_pipeline_snapshot(snapshot_id)
        parent_snapshot = (self._run_storage.get_pipeline_snapshot(
            snapshot.lineage_snapshot.parent_snapshot_id)
                           if snapshot.lineage_snapshot else None)
        return HistoricalPipeline(
            self._run_storage.get_pipeline_snapshot(snapshot_id), snapshot_id,
            parent_snapshot)
Exemple #2
0
    def get_historical_pipeline(self, snapshot_id):
        from dagster.core.host_representation import HistoricalPipeline

        return HistoricalPipeline(
            self._run_storage.get_pipeline_snapshot(snapshot_id), snapshot_id)