Skip to content

Commit

Permalink
set max retry for trino connection (#4898)
Browse files Browse the repository at this point in the history
  • Loading branch information
maskarb authored Feb 7, 2024
1 parent 0cdebf7 commit cd391cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions koku/koku/trino_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def connect(**connect_args):
),
"schema": connect_args["schema"],
"legacy_primitive_types": connect_args.get("legacy_primitive_types", False),
"max_attempts": 9, # based on exponential backoff used in the trino lib, 9 max retries with take ~100 seconds
}
return trino.dbapi.connect(**trino_connect_args)

Expand Down

0 comments on commit cd391cc

Please sign in to comment.