Skip to content

Commit

Permalink
Merge pull request #117 from microsoft/v1.7.4
Browse files Browse the repository at this point in the history
Added retry count to allow driver to retry connections before manual …
  • Loading branch information
prdpsvs authored Feb 2, 2024
2 parents e8a59ed + 6aad3eb commit a97aa2f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/adapters/fabric/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "1.7.3"
version = "1.7.4"
10 changes: 10 additions & 0 deletions dbt/adapters/fabric/fabric_connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,16 @@ def open(cls, connection: Connection) -> Connection:
application_name = f"dbt-{credentials.type}/{plugin_version}"
con_str.append(f"APP={application_name}")

try:
if int(credentials.retries) > 0:
con_str.append(f"ConnectRetryCount={credentials.retries}")

except Exception as e:
logger.debug(
"Retry count should be a integer value. Skipping retries in the connection string.",
str(e),
)

con_str_concat = ";".join(con_str)

index = []
Expand Down

0 comments on commit a97aa2f

Please sign in to comment.