Skip to content

Commit

Permalink
bandaid lint, fixup goldens
Browse files Browse the repository at this point in the history
  • Loading branch information
shirshanka committed Jul 12, 2024
1 parent 478dfd1 commit b3f0564
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 8 deletions.
22 changes: 14 additions & 8 deletions metadata-ingestion/src/datahub/ingestion/run/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,13 +379,19 @@ def _notify_reporters_on_ingestion_completion(self) -> None:
for reporter in self.reporters:
try:
reporter.on_completion(
status="CANCELLED"
if self.final_status == PipelineStatus.CANCELLED
else "FAILURE"
if self.has_failures()
else "SUCCESS"
if self.final_status == PipelineStatus.COMPLETED
else "UNKNOWN",
status=(
"CANCELLED"
if self.final_status == PipelineStatus.CANCELLED
else (
"FAILURE"
if self.has_failures()
else (
"SUCCESS"
if self.final_status == PipelineStatus.COMPLETED
else "UNKNOWN"
)
)
),
report=self._get_structured_report(),
ctx=self.ctx,
)
Expand Down Expand Up @@ -425,7 +431,7 @@ def _time_to_print(self) -> bool:
return True
return False

def run(self) -> None:
def run(self) -> None: # noqa: C901
with contextlib.ExitStack() as stack:
if self.config.flags.generate_memory_profiles:
import memray
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,45 @@
[
{
"entityType": "dashboard",
"entityUrn": "urn:li:dashboard:(grafana,default)",
"changeType": "UPSERT",
"aspectName": "dashboardInfo",
"aspect": {
"json": {
"customProperties": {
"displayName": "Default Dashboard",
"id": "1",
"uid": "default",
"title": "Default Dashboard",
"uri": "db/default-dashboard",
"type": "dash-db",
"folderId": "",
"folderUid": "",
"folderTitle": ""
},
"title": "Default Dashboard",
"description": "",
"charts": [],
"datasets": [],
"lastModified": {
"created": {
"time": 0,
"actor": "urn:li:corpuser:unknown"
},
"lastModified": {
"time": 0,
"actor": "urn:li:corpuser:unknown"
}
},
"dashboardUrl": "http://localhost:3000/d/default/default-dashboard"
}
},
"systemMetadata": {
"lastObserved": 1720785600000,
"runId": "grafana-test-simple",
"lastRunId": "no-run-id-provided"
}
},
{
"entityType": "dashboard",
"entityUrn": "urn:li:dashboard:(grafana,default)",
Expand Down

0 comments on commit b3f0564

Please sign in to comment.