We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a97a291 commit a5be1f7Copy full SHA for a5be1f7
app.py
@@ -71,18 +71,6 @@ def is_retriable(self, value):
71
result = value in RETRY_CODES
72
return result
73
74
- @retry(stop=stop_after_attempt(3), wait=wait_fixed(10), after=after_log(app.logger, logging.DEBUG))
75
- def __createConnection(self, idx):
76
- try:
77
- application_name = ";APP={0}-{1}".format(socket.gethostname(), idx)
78
- conn = pyodbc.connect(os.environ['SQLAZURECONNSTR_WWIF'] + application_name)
79
- except Exception as e:
80
- if isinstance(e,pyodbc.ProgrammingError) or isinstance(e,pyodbc.OperationalError):
81
- if self.is_retriable(int(e.args[0])):
82
- raise
83
-
84
- return conn
85
86
def __getConnection(self):
87
self.__lock.acquire()
88
idx = self.__conn_index + 1
0 commit comments