Skip to content

Commit

Permalink
feat(cli): add threads to sink report (#9642)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored Jan 17, 2024
1 parent dfb2f7e commit dadd51e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metadata-ingestion/src/datahub/ingestion/sink/datahub_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class DatahubRestSinkConfig(DatahubClientConfig):

@dataclass
class DataHubRestSinkReport(SinkReport):
max_threads: int = -1
gms_version: str = ""
pending_requests: int = 0

Expand Down Expand Up @@ -102,6 +103,7 @@ def __post_init__(self) -> None:
.get("linkedin/datahub", {})
.get("version", "")
)
self.report.max_threads = self.config.max_threads
logger.debug("Setting env variables to override config")
set_env_variables_override_config(self.config.server, self.config.token)
logger.debug("Setting gms config")
Expand Down

0 comments on commit dadd51e

Please sign in to comment.