persist file batches and clean up after 7 days

This commit is contained in:
Swapna Lekkala 2025-10-01 10:38:23 -07:00
parent 943255697e
commit 9d2d8ab61c
3 changed files with 459 additions and 49 deletions

View file

@ -18,6 +18,13 @@ from llama_stack.log import get_logger
logger = get_logger(name=__name__, category="vector_io")
@pytest.fixture(autouse=True)
def rate_limit_between_tests():
"""Add 10 second delay between integration tests to prevent rate limiting."""
yield # Run the test first
time.sleep(10) # Delay after each test
def skip_if_provider_doesnt_support_openai_vector_stores(client_with_models):
vector_io_providers = [p for p in client_with_models.providers.list() if p.api == "vector_io"]
for p in vector_io_providers: