Skip to content

Commit f239189

Browse files
fix(tableau): restart server object when reauthenticating
1 parent 89acda6 commit f239189

File tree

1 file changed

+3
-4
lines changed
  • metadata-ingestion/src/datahub/ingestion/source/tableau

1 file changed

+3
-4
lines changed

metadata-ingestion/src/datahub/ingestion/source/tableau/tableau.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -896,10 +896,9 @@ def dataset_browse_prefix(self) -> str:
896896
return f"/{self.config.env.lower()}{self.no_env_browse_prefix}"
897897

898898
def _re_authenticate(self):
899-
tableau_auth: Union[
900-
TableauAuth, PersonalAccessTokenAuth
901-
] = self.config.get_tableau_auth(self.site_id)
902-
self.server.auth.sign_in(tableau_auth)
899+
# Sign-in again may not be enough because Tableau sometimes caches invalid sessions
900+
# so we need to restart the Tableau Server object
901+
self.server = make_tableau_client(self.site_id)
903902

904903
@property
905904
def site_content_url(self) -> Optional[str]:

0 commit comments

Comments
 (0)