[PR #88] [MERGED] feat: Add max execution time parameter to endpoint handling #305

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/88
Author: @Yeuoly
Created: 3/10/2025
Status: Merged
Merged: 3/10/2025
Merged by: @Yeuoly

Base: mainHead: fix/hardcoded-endpoint-timeout


📝 Commits (1)

  • 65f1e65 feat: Add max execution time parameter to endpoint handling

📊 Changes

4 files changed (+18 additions, -14 deletions)

View changed files

📝 internal/server/endpoint.go (+8 -6)
📝 internal/server/endpoint_test.go (+2 -1)
📝 internal/server/http_server.go (+6 -6)
📝 internal/service/endpoint.go (+2 -1)

📄 Description

Modify endpoint-related functions to support configurable maximum execution time:

  • Update EndpointHandler signature to include maxExecutionTime
  • Pass max execution timeout from config to endpoint service
  • Modify timeout mechanism to use configurable duration instead of hardcoded 240 seconds

🔄 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/88 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 3/10/2025 **Status:** ✅ Merged **Merged:** 3/10/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `fix/hardcoded-endpoint-timeout` --- ### 📝 Commits (1) - [`65f1e65`](https://github.com/langgenius/dify-plugin-daemon/commit/65f1e65fc1f336db9c87b80d8850f4ca69d43861) feat: Add max execution time parameter to endpoint handling ### 📊 Changes **4 files changed** (+18 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `internal/server/endpoint.go` (+8 -6) 📝 `internal/server/endpoint_test.go` (+2 -1) 📝 `internal/server/http_server.go` (+6 -6) 📝 `internal/service/endpoint.go` (+2 -1) </details> ### 📄 Description Modify endpoint-related functions to support configurable maximum execution time: - Update EndpointHandler signature to include maxExecutionTime - Pass max execution timeout from config to endpoint service - Modify timeout mechanism to use configurable duration instead of hardcoded 240 seconds --- <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:29 -05:00
yindo closed this issue 2026-02-16 01:15:29 -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#305