Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
sgomezvillamor committed Dec 27, 2024
1 parent 1522339 commit 1afb4e7
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ class SiteIdContentUrl:
site_content_url: str


@dataclass
class TableauSourceReport(
StaleEntityRemovalSourceReport,
IngestionStageReport,
Expand Down Expand Up @@ -670,7 +671,7 @@ class TableauSourceReport(
num_upstream_table_lineage_failed_parse_sql: int = 0
num_upstream_fine_grained_lineage_failed_parse_sql: int = 0
num_hidden_assets_skipped: int = 0
logged_in_user: List[UserInfo] = []
logged_in_user: List[UserInfo] = field(default_factory=list)


def report_user_role(report: TableauSourceReport, server: Server) -> None:
Expand Down Expand Up @@ -834,6 +835,9 @@ def get_workunits_internal(self) -> Iterable[MetadataWorkUnit]:
platform=self.platform,
)
yield from site_source.ingest_tableau_site()

self.report.report_ingestion_stage_start("End")

except MetadataQueryException as md_exception:
self.report.failure(
title="Failed to Retrieve Tableau Metadata",
Expand Down Expand Up @@ -3535,4 +3539,4 @@ def ingest_tableau_site(self):
if self.database_tables:
with PerfTimer() as timer:
yield from self.emit_upstream_tables()
self.report.emit_upstream_tables_timer[self.site_id] = round(timer.elapsed_seconds(), 2)
self.report.emit_upstream_tables_timer[self.site_id] = round(timer.elapsed_seconds(), 2)

0 comments on commit 1afb4e7

Please sign in to comment.