in curator/actions/delete_indices.py [0:0]
def __chunk_loop(self, chunk_list):
"""
Loop through deletes 3 times to ensure they complete
:param chunk_list: A list of indices pre-chunked so it won't overload
the URL size limit.
:type chunk_list: list
"""
working_list = chunk_list
for count in range(1, 4): # Try 3 times
for i in working_list:
self.loggit.info("---deleting index %s", i)
self.client.indices.delete(
index=to_csv(working_list), master_timeout=self.master_timeout
)
result = [i for i in working_list if i in get_indices(self.client)]
if self._verify_result(result, count):
return
working_list = result
self.loggit.error(
'Unable to delete the following indices after 3 attempts: %s', result
)