I have a function that often seem to stop unexpectedly. If I r-start the server, all is working.
Here is the main part of the function :
query = """
SELECT DISTINCT `meterName`
FROM `azure-pricing`
GROUP BY `meterName`
LIMIT 0, 1000
"""
print("query =", query)
cursor_cloud.execute(query)
result = cursor_cloud.fetchall()
The server stopped unexpectedly with code -1
This happens after while. Is there some leak in memory or something of that kind for my manage.py runserver to stop ?
(I’m using PyCharm)