Skip to content

Commit cd391cc

Browse files
authored
set max retry for trino connection (#4898)
1 parent 0cdebf7 commit cd391cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

koku/koku/trino_database.py

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def connect(**connect_args):
106106
),
107107
"schema": connect_args["schema"],
108108
"legacy_primitive_types": connect_args.get("legacy_primitive_types", False),
109+
"max_attempts": 9, # based on exponential backoff used in the trino lib, 9 max retries with take ~100 seconds
109110
}
110111
return trino.dbapi.connect(**trino_connect_args)
111112

0 commit comments

Comments
 (0)