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

OnAllNodeCompleted 似乎不太符合预期,所有节点未完成就触发了,进而导致OnMsgAndWait没有阻塞进程 #24

Open
zxdstyle opened this issue May 27, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@zxdstyle
Copy link

zxdstyle commented May 27, 2024

image
@whki
Copy link
Contributor

whki commented May 27, 2024

OnEnd和OnDebug异步触发的,所以这里面打印顺序是不确定的。OnAllNodeCompleted 是所有节点执行完了才会触发,但不包括用户自定义的OnEnd和OnDebug逻辑。

@zxdstyle
Copy link
Author

下面的Incoming message是log组件打印的,说明log组件没有执行完就调用OnAllNodeCompleted了

@zxdstyle
Copy link
Author

image

@whki
Copy link
Contributor

whki commented May 27, 2024

应该是迭代器组件引起的,因为迭代器组件会执行多次,另外遍历完还会触发一个Success链导致提前判断结束。

@zxdstyle
Copy link
Author

确实是迭代器组件的问题,去掉后运行正常

@whki whki added the bug Something isn't working label May 29, 2024
@whki
Copy link
Contributor

whki commented Jun 17, 2024

v0.22.0将会提供新的for组件 ,使用 for组件 代替。for组件会等待子链执行完再往下走。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants