We are getting some memory leak problems. I think it should be because of the cursor, which is never closed. I’m sharing the parts where i think it is the source of the problem. def execute_sql(sql): logs.custom_formatter(file_name=”db”, class_name=”execute_sql”) try: mycursor = cnx.cursor() print(“sql:”,sql) mycursor.execute(sql) result = mycursor.fetchall() return result except […]