-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
0.8.3 parallel Workflow run failed #8731
Comments
I found a similar issue and discussion that might be relevant to your problem:
The issue you're encountering with the parallel workflow run failing in Dify version 0.8.3 is likely due to the Here is the relevant part of the code where the {
"data": {
"template": "{{ arg1 }} 123",
"title": "template transform",
"type": "template-transform",
"variables": [{"value_selector": ["sys", "query"], "variable": "arg1"}],
},
"id": "tt",
},
{
"data": {
"template": "{{ arg1 }} 321",
"title": "template transform",
"type": "template-transform",
"variables": [{"value_selector": ["sys", "query"], "variable": "arg1"}],
},
"id": "tt-2",
} To fix this issue, ensure that the variable_pool = VariablePool(
system_variables={
SystemVariableKey.QUERY: "your query here",
SystemVariableKey.FILES: [],
SystemVariableKey.CONVERSATION_ID: "abababa",
SystemVariableKey.USER_ID: "aaa",
},
user_inputs={"query": "your query here"},
) Make sure to replace |
I debug the code, and find that the last node's output in parallel is missing. We will resolve it later. |
I've noticed that the parallel nodes are being processed in the wrong order, or rather, it looks like the system is misinterpreting the order in which the parallel nodes are being processed. For example, in the first graph, the correct order should be Start -> 1, 2, 3, 4, 5 -> A&B. But looking at the logs on the right side of the graph, the workflow runs in the order Start -> 1, 2, A, 3, 4, 5. Hope this helps to solve the problem. |
Node A should run after all nodes 1, 2, 3, 4 have finished running. But currently, node A is running after nodes 1 and 2 have run, so it can't find the output variable for node 3. |
|
@huangyafei 1,2,3,4,5 -> A & B is partial convergence in parallel. We don't support that partial convergence now. We support C-> 1,2,3,4 -> A; 5 -> B. |
Self Checks
Dify version
0.8.3
Cloud or Self Hosted
Cloud, Self Hosted (Docker)
Steps to reproduce
I have found a similar Issue #8355 and a related PR #8378. But, this PR only fixed the problem within if/else nodes.
Currently, I'm encountering a new issue:
Case 1
DSL:
Case 2
DSL:
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
The text was updated successfully, but these errors were encountered: