Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflow conversation cannot be saved #3189

Closed
4 tasks done
DayoWang opened this issue Apr 9, 2024 · 1 comment · Fixed by #3235
Closed
4 tasks done

workflow conversation cannot be saved #3189

DayoWang opened this issue Apr 9, 2024 · 1 comment · Fixed by #3235
Assignees
Labels
🐞 bug Something isn't working 🌊 feat:workflow Workflow related stuff.

Comments

@DayoWang
Copy link

DayoWang commented Apr 9, 2024

Self Checks

  • This is only for bug report, if you would like to ask a quesion, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.6.0-fix1

Cloud or Self Hosted

Cloud, Self Hosted (Docker)

Steps to reproduce

After the workflow is released, if create a new conversation and switch applications,
企业微信20240409-100411@2x
企业微信20240409-100608@2x
企业微信20240409-100627@2x
find that the original conversation has not been saved, resulting in an error in sending messages.

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Copy link

dosubot bot commented Apr 9, 2024

Hey @DayoWang, great to see you around here again! Hope you're doing well amidst these tech puzzles.

Based on the information you've provided, it seems like the issue you're experiencing might be related to the WorkflowEventTriggerCallback class in the Dify codebase. This class is designed to handle various events related to workflow execution and individual workflow node execution. It's responsible for publishing different types of events to a queue system during the lifecycle of a workflow and its nodes.

One of the methods in this class, on_node_text_chunk, is supposed to handle the publishing of text chunks, which could be part of the workflow conversations. However, as shown in the provided code snippet, the on_node_text_chunk method has a pass statement, indicating that the method does not perform any operation. This lack of implementation means that any attempt to handle or save workflow conversations by invoking this method would result in no action being taken, which could lead to errors or the inability to save conversations when the workflow is released and the application context is switched.

To resolve this issue, the on_node_text_chunk method needs to be properly implemented to handle the publishing of text chunks as part of the workflow conversations. However, as I'm unable to create pull requests or issues, I would recommend reaching out to the repository maintainers or contributors to address this issue.

You can find more details about the WorkflowEventTriggerCallback class and its methods in the Dify repository.

I hope this information helps! If you have any other questions or need further clarification, feel free to ask.

Sources

About Dosu

This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 🌊 feat:workflow Workflow related stuff.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants