Skip to content

Blocks loader

clear_caches()

Clear all LRU caches in this module. Useful for testing or when environment configuration changes.

Source code in inference/core/workflows/execution_engine/introspection/blocks_loader.py
62
63
64
65
66
67
68
69
70
71
def clear_caches() -> None:
    """
    Clear all LRU caches in this module.
    Useful for testing or when environment configuration changes.
    """
    _cached_describe_available_blocks.cache_clear()
    load_core_workflow_blocks.cache_clear()
    _cached_load_all_defined_kinds.cache_clear()
    _cached_model_json_schema.cache_clear()
    _cached_describe_outputs.cache_clear()