Adding in es.close() to prevent memory/connection leaks over time

This commit is contained in:
Ainsey11 2022-04-15 01:44:29 +01:00
parent d05f9aec51
commit 5d5b4b4826

View File

@ -56,4 +56,5 @@ class ElasticWrapper:
print("Sleeping for 10 seconds...")
sleep(10)
else:
es.close()
return response