Skip to content

Suppress No runtime found, using MemoryCacheStorageManager warning at CLI startup #36

@NetZissou

Description

@NetZissou
WARNING streamlit.runtime.caching.cache_data_api: No runtime found, using MemoryCacheStorageManager

Initial diagnosis:

The @st.cache_data decorators on embedding_service.get_model_options and data_preview._fetch_image_from_url_cached are applied at module import time, which fires before Streamlit's runtime exists in the CLI entry-point shim process. The fallback to MemoryCacheStorageManager works correctly, so the warning is cosmetic.

Fix by either lazily importing the decorated module from inside app(), or by wrapping st.cache_data with a no-op fallback when the runtime isn't available.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions