def set_call_timeout(self, conn: cx_Oracle.Connection): try: # Connection.callTimeout is in milliseconds conn.callTimeout = 20000 print(f"Query timeout configured to: 20000 milisecs.") except Exception as err: print(f"Trying to configure query timeout thrown an unknown error: {err}.")
def set_call_timeout(self, conn: cx_Oracle.Connection): try: # Connection.callTimeout is in milliseconds conn.callTimeout = self.db_conf.query_timeout print( f"Query timeout configured to: {self.db_conf.query_timeout}.") except Exception as err: traceback.print_exc() print( f"Trying to configure query timeout thrown an unknown error: {err}." )