Commit Graph

7191 Commits (9c96f1db6c2f3d38ca53dedc5fae6ed6cc3785ed)
 

Author SHA1 Message Date
NeatGuyCoding 7bf3d2c8bf
fix(api): Fix potential thread leak in MCP `BaseSession` (#22169)
The `BaseSession` class in the `core/mcp/session` package uses `ThreadPoolExecutor` 
to run the receive loop but fails to properly clean up the executor and receiver 
future, leading to potential thread leaks.

This PR addresses this issue by:
- Initializing `_executor` and `_receiver_future` attributes to `None` for proper cleanup checks
- Adding graceful shutdown with a 5-second timeout in the `__exit__` method
- Ensuring the ThreadPoolExecutor is properly shut down to prevent resource leaks

This fix prevents memory leaks and hanging threads in long-running scenarios where 
multiple MCP sessions are created and destroyed.

Signed-off-by: neatguycoding <15627489+NeatGuyCoding@users.noreply.github.com>
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
9 months ago
Jacky Wu da53bf511f
chore: add SQLALCHEMY_POOL_USE_LIFO option and missing SQLALCHEMY_POOL_PRE_PING env default value. (#22371) 9 months ago
GuanMu 7388fd1ec6
fix: Disable question editing in chat history (#22438) 9 months ago
GuanMu b803eeb528
fix: Update condition items to support variable type acquisition (#22414) 9 months ago
jyong 1ad73ccdc8 r2 9 months ago
jyong 96484731a2 r2 9 months ago
quicksand 14f79ee652
fix: create api workflow run repository error (#22422) 9 months ago
-LAN- df89629e04
fix: conversatino statistic including data from debugger (#22412)
Signed-off-by: -LAN- <laipz8200@outlook.com>
9 months ago
GuanMu d427088ab5
fix: remove PickerPanel padding (#22419) 9 months ago
jyong 537e535d9a r2 9 months ago
jyong 3a3b60bab5 r2 9 months ago
Hao Cheng 32c541a9ed
fix: generate deterministic operationId for root endpoints without one (#19888) 9 months ago
Minamiyama 7e666dc3b1
fix(prompt-editor): show error warning for destructive env and conv var (#21802) 9 months ago
quicksand 5247c19498
fix: code result included "error" field (#22392) 9 months ago
湛露先生 9823edd3a2
fix workflow node iterator . (#21008)
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
9 months ago
suntp 88537991d6
fix: Metadata filtering with Manual option in Agent mode does not take effect when specifying input variables. (#20362) 9 months ago
homejim 8e910d8c59
fix(plugin): introduce response_type parameter in plugin list API to enable paginated response support (#22251) 9 months ago
Minamiyama a0b32b6027
feat(config-modal): add space to underscore conversion in variable name input of start node (#22284) 9 months ago
wanttobeamaster bf7b2c339b
tablestore vector support more method (#22225)
Co-authored-by: xiaozhiqing.xzq <xiaozhiqing.xzq@alibaba-inc.com>
9 months ago
Bowen Liang a1dfe6d402
chore: bump nextjs to 15.3 (#22262) 9 months ago
Zhoneym d2a3e8b9b1
Provides a set of Kubernetes manifests supporting version 1.6.0 (#22287) 9 months ago
quicksand ebb88bbe0b
improve opik workflow_trace span name to node name (#22356) 9 months ago
jyong 63111e8050 r2 9 months ago
twwu 405139c377 fix: add isRunning prop to ProcessDocuments and related components for better processing state management 9 months ago
jyong a919e3e135 r2 9 months ago
heyszt b690a9d839
fix: aliyun trace title&description (#22347) 9 months ago
Krishna Somani 9d9423808e
Update README.md (#22351) 9 months ago
twwu 3e5772c50c fix: enhance layout and tooltip handling in Actions component 9 months ago
twwu cb8fab7364 Merge branch 'feat/rag-2' of https://github.com/langgenius/dify into feat/rag-2 9 months ago
twwu 60f3832c65 fix: refactor OptionCard and StepTwo components for improved structure and readability 9 months ago
Joel cf89d06023 fix: single run url error in pipeline 9 months ago
jyong 4b9a5a66c1 r2 9 months ago
Joel e095de05c5 feat: pipeline run 9 months ago
Joel 82f4b35d52 chore: use flow type instead of whole url 9 months ago
Jacky Wu 3e96c0c468
fix: close session before doing long latency operation (#22306) 9 months ago
Joel 7a9faf909e feat: workflow use common last run 9 months ago
-LAN- 6eb155ae69
feat(api/repo): Allow to config repository implementation (#21458)
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
9 months ago
jyong 928751a856 r2 9 months ago
twwu d77d86f53b fix: remove unused showWorkflowEmpty prop from Tools component for cleaner code 9 months ago
GuanMu b27c540379
Fix: Remove height and overflow style settings (#22327) 9 months ago
HyaCinth 8b1f428ead
Chore: Replace lodash/noop with lodash-es/noop (#22331) 9 months ago
twwu 2a5bab10b8 fix: pass dataSources prop to PortalToFollowElem for improved functionality 9 months ago
twwu 6313f819cf fix: add block enumeration and tool icon handling for enhanced workflow functionality 9 months ago
twwu 682b65034c Merge branch 'main' into feat/rag-2 9 months ago
Novice 1d54ffcf89
fix: error parsing object type parameters for code node (#22230) 9 months ago
twwu adbad0ad33 fix: enhance bucket list initiation check for improved accuracy 9 months ago
NFish d9eb5554b3
fix: prevent trigger form submit action when press 'enter' (#22313) 9 months ago
Krishna Somani da94bdeb54
Update README.md (#22305) 9 months ago
Jason Young 27e5e2745b
test: add comprehensive unit tests for login decorator (#22294) 9 months ago
znn 1b26f9a4c6
fixing Enum part in backend and making it same as front end (#22296) 9 months ago