mirror of
https://github.com/tubearchivist/tubearchivist-metrics.git
synced 2024-12-22 09:50:15 +00:00
Adding in es.close() to prevent memory/connection leaks over time
This commit is contained in:
parent
d05f9aec51
commit
5d5b4b4826
@ -56,4 +56,5 @@ class ElasticWrapper:
|
|||||||
print("Sleeping for 10 seconds...")
|
print("Sleeping for 10 seconds...")
|
||||||
sleep(10)
|
sleep(10)
|
||||||
else:
|
else:
|
||||||
|
es.close()
|
||||||
return response
|
return response
|
||||||
|
Loading…
Reference in New Issue
Block a user