fix: Fix test_get_and_cache_all_types_dict (#5054)

This commit is contained in:
Christophe Bornet 2024-12-05 14:15:21 +01:00 • committed by GitHub
commit c1bd7c89c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 16 additions and 15 deletions

View file

@ -101,7 +101,7 @@ def get_lifespan(*, fix_migration=False, version=None):
rprint("[bold green]Starting Langflow...[/bold green]")
try:
await initialize_services(fix_migration=fix_migration)
await asyncio.to_thread(setup_llm_caching)
setup_llm_caching()
await initialize_super_user_if_needed()
all_types_dict = await get_and_cache_all_types_dict(get_settings_service())
await asyncio.to_thread(create_or_update_starter_projects, all_types_dict)