#Cache Refresh Issue in composio-langgraph

1 messages · Page 1 of 1 (latest)

alpine escarp
#

Hey @sage lion @surreal grotto ,
even with COMPOSIO_NO_CACHE_REFRESH=true, the cache refresh process is still being triggered. During initialization of ComposioToolSet, the log shows:

Actions cache is outdated, refreshing cache...

This step takes about 2 minutes to complete, which adds a significant startup delay and slows down initialization.

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

#

@proud garnet

surreal grotto
proud garnet
#

Hey @surreal grotto 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?

surreal grotto
surreal grotto
alpine escarp
#

It is working fine, but we get it often, when it happens it takes around 1 min to get the tools.