mirror of
https://github.com/tubearchivist/tubearchivist-metrics.git
synced 2024-12-22 01:40:14 +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...")
|
||||
sleep(10)
|
||||
else:
|
||||
es.close()
|
||||
return response
|
||||
|
Loading…
Reference in New Issue
Block a user