mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
update caching rules
This commit is contained in:
@@ -924,13 +924,15 @@ async def execute_graph(
|
||||
)
|
||||
|
||||
# Invalidate caches before execution starts so frontend sees fresh data
|
||||
# For some reason these are the values hard coded in list_graphs_executions
|
||||
cache.get_cached_graphs_executions.cache_delete(
|
||||
user_id=user_id, page=1, page_size=250
|
||||
)
|
||||
for page in range(1, 10):
|
||||
cache.get_cached_graph_execution.cache_delete(
|
||||
graph_id=graph_id, user_id=user_id, version=graph_version
|
||||
)
|
||||
cache.get_cached_graphs_executions.cache_delete(
|
||||
user_id=user_id, page=page, page_size=25
|
||||
)
|
||||
|
||||
cache.get_cached_graph_executions.cache_delete(
|
||||
graph_id=graph_id, user_id=user_id, page=page, page_size=25
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ export function useAgentActivityDropdown() {
|
||||
data: agents,
|
||||
isSuccess: agentsSuccess,
|
||||
error: agentsError,
|
||||
} = useGetV2ListLibraryAgents();
|
||||
} = useGetV2ListLibraryAgents({ page_size: 10 });
|
||||
|
||||
const {
|
||||
data: executions,
|
||||
|
||||
Reference in New Issue
Block a user