dify icon indicating copy to clipboard operation
dify copied to clipboard

Workflow code block randomly timeout

Open ceerRep opened this issue 1 week ago • 5 comments

Self Checks

  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.3, sandbox 0.2.10

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Place a code block in a workflow
  2. Fill the code block input by query.string. Keep the default code snippet.
def main(arg1: str, arg2: str) -> dict:
  return {
      "result": arg1 + arg2,
  }

  1. Click run this step button
  2. Fill arg1 and arg2 with some text
  3. Click run button
  4. Repeat step 5 when step finishes

✔️ Expected Behavior

Successfully executed for each run with no error. This simple snippet should not cost much time.

❌ Actual Behavior

Randomly timeout.

Image

ceerRep avatar Feb 24 '25 02:02 ceerRep