[PR #263] [CLOSED] feat: support concurrently handle local plugins launching #409

Closed
opened 2026-02-16 01:15:52 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/263
Author: @bowenliang123
Created: 5/7/2025
Status: Closed

Base: mainHead: concurrent-local-plugins


📝 Commits (3)

  • dd24122 support concurrently handle local plugins
  • 78e38b3 use cpu cores as default value of PluginLocalLaunchingConcurrent
  • 0c0b798 resolve comments for waitGroup.Add

📊 Changes

3 files changed (+37 additions, -18 deletions)

View changed files

📝 internal/core/plugin_manager/manager.go (+1 -1)
📝 internal/core/plugin_manager/watcher.go (+31 -15)
📝 internal/types/app/default.go (+5 -2)

📄 Description

  • Currently, all the local plugins are being checked and initialising the Python environment sequentially. And the pre-compiling each single Python file one by one in the plugin and its dependency in the InitPythonEnvironment method slows the uptime for plugin launching
  • This PR brings concurrency in handling local plugins, which speeds up the plugin launching time dramatically, especially for a new empty plugin-daemon instance.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/263 **Author:** [@bowenliang123](https://github.com/bowenliang123) **Created:** 5/7/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `concurrent-local-plugins` --- ### 📝 Commits (3) - [`dd24122`](https://github.com/langgenius/dify-plugin-daemon/commit/dd24122ecb1f1c6a72de2fab4ea8f7b76c35f851) support concurrently handle local plugins - [`78e38b3`](https://github.com/langgenius/dify-plugin-daemon/commit/78e38b39d4031b89836e1d3d7d05695f6e0a9d9b) use cpu cores as default value of PluginLocalLaunchingConcurrent - [`0c0b798`](https://github.com/langgenius/dify-plugin-daemon/commit/0c0b7989da13737ec370bed407b1429a68fddc76) resolve comments for `waitGroup.Add` ### 📊 Changes **3 files changed** (+37 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `internal/core/plugin_manager/manager.go` (+1 -1) 📝 `internal/core/plugin_manager/watcher.go` (+31 -15) 📝 `internal/types/app/default.go` (+5 -2) </details> ### 📄 Description - Currently, all the local plugins are being checked and initialising the Python environment sequentially. And the pre-compiling each single Python file one by one in the plugin and its dependency in the `InitPythonEnvironment` method slows the uptime for plugin launching - This PR brings concurrency in handling local plugins, which speeds up the plugin launching time dramatically, especially for a new empty plugin-daemon instance. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:52 -05:00
yindo closed this issue 2026-02-16 01:15:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#409