dify - 💡(How to fix) Fix Feature Request: The platform needs to support user-initiated termination of workflows or inference processes. [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
langgenius/dify#35368Fetched 2026-04-18 05:58:03
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
2
Participants
Assignees
Timeline (top)
labeled ×2assigned ×1
RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

When a workflow is running, users may wish to terminate the execution or exit the current conversation. We request that the platform add a termination API that users can invoke to terminate the current session at the system level—rather than merely closing the frontend session window—so that server-side resources can be properly released.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.

extent analysis

TL;DR

Implementing a termination API to release server-side resources when a user terminates a workflow session is likely the most effective solution.

Guidance

  • Investigate existing session management mechanisms to determine the best approach for terminating server-side resources.
  • Consider designing the termination API to accept a session identifier to ensure the correct session is terminated.
  • Evaluate the potential impact on ongoing workflows and develop a strategy for handling partial terminations or errors.
  • Review security considerations to prevent unauthorized session terminations.

Example

No code example is provided due to the lack of specific technical details in the issue.

Notes

The implementation details of the termination API will depend on the underlying architecture and technology stack of the platform, which is not specified in the issue.

Recommendation

Apply workaround: Design and implement a custom termination API to release server-side resources when a user terminates a workflow session, as this will provide a targeted solution to the problem.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

dify - 💡(How to fix) Fix Feature Request: The platform needs to support user-initiated termination of workflows or inference processes. [1 participants]