mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-30 18:17:53 +00:00
Fix: dagster keyerror solved (#9099)
This commit is contained in:
parent
173a88be7c
commit
ead5ce7227
@ -212,7 +212,7 @@ class DagsterSource(PipelineServiceSource):
|
|||||||
runs = self.get_task_runs(
|
runs = self.get_task_runs(
|
||||||
task.name, pipeline_name=pipeline_details.get("name")
|
task.name, pipeline_name=pipeline_details.get("name")
|
||||||
)
|
)
|
||||||
for run in runs["solidHandle"]["stepStats"]["nodes"]:
|
for run in runs["solidHandle"]["stepStats"].get("nodes") or []:
|
||||||
task_status = TaskStatus(
|
task_status = TaskStatus(
|
||||||
name=task.name,
|
name=task.name,
|
||||||
executionStatus=STATUS_MAP.get(
|
executionStatus=STATUS_MAP.get(
|
||||||
@ -247,7 +247,7 @@ class DagsterSource(PipelineServiceSource):
|
|||||||
for result in results:
|
for result in results:
|
||||||
self.context.repository_location = result.get("location")["name"]
|
self.context.repository_location = result.get("location")["name"]
|
||||||
self.context.repository_name = result["name"]
|
self.context.repository_name = result["name"]
|
||||||
for job in result["pipelines"]:
|
for job in result.get("pipelines") or []:
|
||||||
yield job
|
yield job
|
||||||
|
|
||||||
def get_pipeline_name(self, pipeline_details) -> str:
|
def get_pipeline_name(self, pipeline_details) -> str:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user