File tree 3 files changed +13
-10
lines changed
metadata-ingestion-modules/dagster-plugin
src/datahub_dagster_plugin/sensors
3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 31
31
DATAHUB_TELEMETRY_ENABLED : false
32
32
strategy :
33
33
matrix :
34
- python-version : ["3.8 ", "3.10"]
34
+ python-version : ["3.9 ", "3.10"]
35
35
include :
36
- - python-version : " 3.8 "
36
+ - python-version : " 3.9 "
37
37
extraPythonRequirement : " dagster>=1.3.3"
38
38
- python-version : " 3.10"
39
39
extraPythonRequirement : " dagster>=1.3.3"
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def get_long_description():
123
123
],
124
124
# Package info.
125
125
zip_safe = False ,
126
- python_requires = ">=3.8 " ,
126
+ python_requires = ">=3.9 " ,
127
127
package_dir = {"" : "src" },
128
128
packages = setuptools .find_namespace_packages (where = "./src" ),
129
129
entry_points = entry_points ,
Original file line number Diff line number Diff line change 28
28
from dagster ._core .definitions .multi_asset_sensor_definition import (
29
29
AssetMaterializationFunctionReturn ,
30
30
)
31
- from dagster ._core .definitions .sensor_definition import (
32
- DefaultSensorStatus ,
33
- RawSensorEvaluationFunctionReturn ,
34
- )
31
+ from dagster ._core .definitions .sensor_definition import DefaultSensorStatus
32
+
33
+ # This SensorReturnTypesUnion is from Dagster 1.9.1+ and is not available in older versions
34
+ # of Dagster. We need to import it conditionally to avoid breaking compatibility with older
35
+ try :
36
+ from dagster ._core .definitions .sensor_definition import SensorReturnTypesUnion
37
+ except ImportError :
38
+ from dagster ._core .definitions .sensor_definition import RawSensorEvaluationFunctionReturn as SensorReturnTypesUnion # type: ignore
39
+
35
40
from dagster ._core .definitions .target import ExecutableDefinition
36
41
from dagster ._core .definitions .unresolved_asset_job_definition import (
37
42
UnresolvedAssetJobDefinition ,
@@ -689,9 +694,7 @@ def _emit_asset_metadata(
689
694
690
695
return SkipReason ("Asset metadata processed" )
691
696
692
- def _emit_metadata (
693
- self , context : RunStatusSensorContext
694
- ) -> RawSensorEvaluationFunctionReturn :
697
+ def _emit_metadata (self , context : RunStatusSensorContext ) -> SensorReturnTypesUnion :
695
698
"""
696
699
Function to emit metadata for datahub rest.
697
700
"""
You can’t perform that action at this time.
0 commit comments