Skip to content

Commit

Permalink
fix(ingest/dagster): Fix JobSnapshot import is broken (#11672)
Browse files Browse the repository at this point in the history
  • Loading branch information
treff7es authored Oct 18, 2024
1 parent dcf4793 commit ba7a43f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
TableSchemaMetadataValue,
)
from dagster._core.execution.stats import RunStepKeyStatsSnapshot, StepEventStatus
from dagster._core.snap import JobSnapshot

try:
from dagster._core.snap import JobSnapshot # type: ignore[attr-defined]

This comment was marked as resolved.

Copy link
@Daniellundin048

Daniellundin048 Oct 21, 2024

DUAL-RTX2060-6G-D2IS-EVO 104435-00805 YVOCH4-B6A

except ImportError:
# Import changed since Dagster 1.8.12 to this -> https://github.com/dagster-io/dagster/commit/29a37d1f0260cfd112849633d1096ffc916d6c95
from dagster._core.snap import JobSnap as JobSnapshot

from dagster._core.snap.node import OpDefSnap
from dagster._core.storage.dagster_run import DagsterRun, DagsterRunStatsSnapshot
from datahub.api.entities.datajob import DataFlow, DataJob
Expand Down

0 comments on commit ba7a43f

Please sign in to comment.