dify/api/core/app
SherlockShemol db5462b2ba fix: release graph_runtime_state reference to prevent memory leak
Release the _graph_runtime_state reference in stop_listen() to allow
Python GC to reclaim memory immediately after request completion.

Without this fix, the reference chain:
  AppQueueManager._graph_runtime_state -> GraphRuntimeState -> Graph -> Node -> graph_runtime_state
prevents garbage collection until the entire pipeline object is released,
causing memory to accumulate under high concurrency.

Fixes #30183

Signed-off-by: SherlockShemol <shemol@163.com>
2025-12-27 06:50:19 +00:00
..
app_config fix: fix json object validate (#29840) 2025-12-18 14:46:00 +08:00
apps fix: release graph_runtime_state reference to prevent memory leak 2025-12-27 06:50:19 +00:00
entities revert: "fix(ops): add streaming metrics and LLM span for agent-chat traces" (#29469) 2025-12-11 12:53:37 +08:00
features rm type ignore (#25715) 2025-10-21 11:26:58 +08:00
layers Enhanced GraphEngine Pause Handling (#28196) 2025-11-26 19:59:34 +08:00
task_pipeline perf: decrease db query (#29837) 2025-12-18 15:35:52 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00