[PR #502] fix: fix https://github.com/langgenius/dify-plugin-daemon/issues/406 #541

Open
opened 2026-02-16 01:16:16 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/502
Author: @fatelei
Created: 11/10/2025
Status: 🔄 Open

Base: mainHead: issue-406


📝 Commits (2)

📊 Changes

32 files changed (+760 additions, -36 deletions)

View changed files

📝 cmd/commandline/plugin/list_readme.go (+1 -1)
📝 go.mod (+1 -0)
📝 go.sum (+1 -0)
integration/ecs_redeployment_test.go (+136 -0)
📝 internal/cluster/plugin.go (+1 -1)
📝 internal/cluster/redirect.go (+16 -3)
📝 internal/cluster/redirect_test.go (+201 -0)
📝 internal/core/io_tunnel/datasource.gen.go (+1 -1)
📝 internal/core/io_tunnel/dynamic_parameter.gen.go (+1 -1)
📝 internal/core/io_tunnel/model.gen.go (+1 -1)
📝 internal/core/io_tunnel/oauth.gen.go (+1 -1)
📝 internal/core/io_tunnel/tool.gen.go (+1 -1)
📝 internal/core/io_tunnel/trigger.gen.go (+1 -1)
📝 internal/db/cache.go (+1 -1)
📝 internal/server/app.go (+4 -0)
📝 internal/server/endpoint.go (+3 -2)
📝 internal/server/middleware.go (+6 -0)
internal/server/middleware_test.go (+250 -0)
📝 internal/server/server.go (+7 -2)
📝 internal/service/datasource.gen.go (+1 -1)

...and 12 more files

📄 Description

Description

fix #406

Plugin daemon fails after ECS task redeployment with connection errors due to stale IP addresses cached in Redis. When containers get new IP
addresses during redeployment, the cluster system continues trying to connect to old, non-existent IP addresses.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

  • I have used GitHub syntax to close the related issue (e.g., Fixes #123 or Closes #123)

Additional Information

Please provide any additional context that would help reviewers understand the changes.


🔄 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/502 **Author:** [@fatelei](https://github.com/fatelei) **Created:** 11/10/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `issue-406` --- ### 📝 Commits (2) - [`50515aa`](https://github.com/langgenius/dify-plugin-daemon/commit/50515aa10059d8d783ab8c60bb3c53dd74b3dedc) fix: fix https://github.com/langgenius/dify-plugin-daemon/issues/406 - [`b996cb0`](https://github.com/langgenius/dify-plugin-daemon/commit/b996cb06260f94c9722ffb54c1fe38d494819464) chore: resolve comment issue ### 📊 Changes **32 files changed** (+760 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `cmd/commandline/plugin/list_readme.go` (+1 -1) 📝 `go.mod` (+1 -0) 📝 `go.sum` (+1 -0) ➕ `integration/ecs_redeployment_test.go` (+136 -0) 📝 `internal/cluster/plugin.go` (+1 -1) 📝 `internal/cluster/redirect.go` (+16 -3) 📝 `internal/cluster/redirect_test.go` (+201 -0) 📝 `internal/core/io_tunnel/datasource.gen.go` (+1 -1) 📝 `internal/core/io_tunnel/dynamic_parameter.gen.go` (+1 -1) 📝 `internal/core/io_tunnel/model.gen.go` (+1 -1) 📝 `internal/core/io_tunnel/oauth.gen.go` (+1 -1) 📝 `internal/core/io_tunnel/tool.gen.go` (+1 -1) 📝 `internal/core/io_tunnel/trigger.gen.go` (+1 -1) 📝 `internal/db/cache.go` (+1 -1) 📝 `internal/server/app.go` (+4 -0) 📝 `internal/server/endpoint.go` (+3 -2) 📝 `internal/server/middleware.go` (+6 -0) ➕ `internal/server/middleware_test.go` (+250 -0) 📝 `internal/server/server.go` (+7 -2) 📝 `internal/service/datasource.gen.go` (+1 -1) _...and 12 more files_ </details> ### 📄 Description ## Description fix #406 Plugin daemon fails after ECS task redeployment with connection errors due to stale IP addresses cached in Redis. When containers get new IP addresses during redeployment, the cluster system continues trying to connect to old, non-existent IP addresses. ## Type of Change - [x] Bug fix - [ ] New feature - [ ] Refactor - [ ] Performance improvement - [ ] Other ## Essential Checklist ### Testing - [x] I have tested the changes locally and confirmed they work as expected - [x] I have added unit tests where necessary and they pass successfully ### Bug Fix (if applicable) - [x] I have used GitHub syntax to close the related issue (e.g., `Fixes #123` or `Closes #123`) ## Additional Information Please provide any additional context that would help reviewers understand the changes. --- <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:16:16 -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#541