pinecone-io / pinecone-python-client

The Pinecone Python client
https://www.pinecone.io/docs
Apache License 2.0
309 stars 80 forks source link

[Chore] Automatically cleanup old resources each night #400

Closed jhamon closed 1 month ago

jhamon commented 1 month ago

Problem

Sometimes when test cleanup steps fail, indexes and collections get left behind.

Solution

Create a nightly job to cleanup leftover indexes. Inspect the names of each index and collection to see whether they are more than 24 hours old prior to deleting. This should prevent deleting resources out from underneath any tests that may be running at the same time as the delete job.

Type of Change