langgenius / langgenius/dify-plugin-daemon

OpenAI and Speech-to-Text blocks hang when running STT workflow in `dify-plugin-daemon` on Kubernetes

Open
#231 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plugin-daemon
Dominant language
Go
Stars
459
Forks
313
Avg merge
5h 17m
Merged PRs (30d)
5

Description

Environment

  • Deployment: Kubernetes
  • Runtime Version: 0.0.7-local

Problem Description

We are encountering an issue where OpenAI blocks become unresponsive when a workflow involving the Speech-to-Text (STT) block is executed. Additionally, the workflow containing the STT block itself hangs indefinitely and does not return any results.

Observations

  • When the STT workflow is running, all concurrent or subsequent OpenAI block executions appear to be blocked.
  • Pod metrics indicate that the relevant process within the dify-plugin-daemon pod consumes 1 full CPU core during this state.
  • This behavior leads us to suspect that the daemon might be single-threaded or facing a bottleneck related to concurrent processing, particularly when handling STT operations.

Questions

  1. Is there a known issue or potential reason why the Speech-to-Text (STT) block would cause other OpenAI blocks to hang and fail to complete itself?
  2. What are the recommended practices or configurations for deploying and managing the dify-plugin-daemon on Kubernetes, potentially including considerations for scaling or concurrency to handle workloads like STT?

Thank you for your support.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the Kubernetes deployment and the STT workflow described in the report, then inspect how concurrent OpenAI and STT executions are handled by dify-plugin-daemon. Done means identifying the hang and CPU bottleneck and documenting a reproducible fix or deployment or concurrency recommendation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
backend, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.