修复: B-03b-R10③工作流事件补execution_id治本并发串扰(emit填+消费exec_id守卫)
This commit is contained in:
@@ -179,8 +179,11 @@ impl DagExecutor {
|
||||
}
|
||||
|
||||
let total = start.elapsed().as_millis() as u64;
|
||||
// B-03b-R10 ③: WorkflowCompleted 携带 execution_id,供 forward 循环按 exec_id 匹配
|
||||
// (全局 event_bus 单例下并发工作流的终态事件不再误触发他人 forward 的完成判定)。
|
||||
self.event_bus
|
||||
.send(WorkflowEvent::WorkflowCompleted {
|
||||
execution_id: self.execution_id.clone(),
|
||||
total_duration_ms: total,
|
||||
})
|
||||
.await;
|
||||
|
||||
Reference in New Issue
Block a user