Skip to content

Commit

Permalink
[Model Monitoring] Add taosws.FetchError to caught exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jond01 committed Oct 6, 2024
1 parent 9708354 commit 838231b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlrun/model_monitoring/db/tsdb/tdengine/tdengine_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def connection(self) -> taosws.Connection:
def with_retry_on_closed_connection(self, fn, **kwargs):
try:
return fn(self.connection, **kwargs)
except taosws.QueryError as err:
logger.warn(f"TDEngine query error: {err}")
except (taosws.QueryError, taosws.FetchError) as err:
logger.warn(f"TDEngine error: {err}")
if "Internal error:" in str(err):
logger.info("Retrying TDEngine query with a new connection")
try:
Expand Down

0 comments on commit 838231b

Please sign in to comment.