Skip to content

Commit a97aa2f

Browse files
authored
Merge pull request #117 from microsoft/v1.7.4
Added retry count to allow driver to retry connections before manual …
2 parents e8a59ed + 6aad3eb commit a97aa2f

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

dbt/adapters/fabric/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "1.7.3"
1+
version = "1.7.4"

dbt/adapters/fabric/fabric_connection_manager.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,16 @@ def open(cls, connection: Connection) -> Connection:
330330
application_name = f"dbt-{credentials.type}/{plugin_version}"
331331
con_str.append(f"APP={application_name}")
332332

333+
try:
334+
if int(credentials.retries) > 0:
335+
con_str.append(f"ConnectRetryCount={credentials.retries}")
336+
337+
except Exception as e:
338+
logger.debug(
339+
"Retry count should be a integer value. Skipping retries in the connection string.",
340+
str(e),
341+
)
342+
333343
con_str_concat = ";".join(con_str)
334344

335345
index = []

0 commit comments

Comments
 (0)