https://linen.dev logo
Cache Refresh Issue in composio-langgraph
# 🖥│support-forum
b
Hey @udaysidagana @abhishekpatil4 , even with COMPOSIO_NO_CACHE_REFRESH=true, the cache refresh process is still being triggered. During initialization of ComposioToolSet, the log shows:
Copy code
Actions cache is outdated, refreshing cache...
This step takes about 2 minutes to complete, which adds a significant startup delay and slows down initialization.
Copy code
composio_toolset = ComposioToolSet(
    entity_id=bot_config.account_id,
    api_key=app_settings.composio_api_key,
    connected_account_ids=connected_account_ids,
)
Environment: Library: composio-langgraph>=0.7.15,<0.8 Python: >=3.11,<3.13
@infinity.vortex
a
@bhukyayedukondalunaik_00285 make sure you're setting the env variable correctly. https://discord.com/channels/1170785031560646836/1377249611307159582/1377596543917363231
i
Hey @abhishekpatil4 we're setting the flag correctly - we can see the log as
true
for the flag value in os getenv
Btw is it expected to take 1min for cache refresh?
a
did you happen to try it on your local machine? is that working fine?
Yes, it does take sometime
b
It is working fine, but we get it often, when it happens it takes around 1 min to get the tools.
l
Do you need developer?