refactor(workflow): move _merge_conv_vars call inside iteration loop for consistent state updates

This commit is contained in:
Timebomb2018
2026-04-13 19:00:36 +08:00
parent 7ca80b5d01
commit 2450fe3afe

View File

@@ -249,9 +249,9 @@ class IterationRuntime:
else: else:
self.result.append(output) self.result.append(output)
child_state.append(result) child_state.append(result)
self._merge_conv_vars(child_pool)
if stopped: if stopped:
self.looping = False self.looping = False
self._merge_conv_vars(batch_sorted[-1][3])
else: else:
# Execute iterations sequentially # Execute iterations sequentially
while idx < len(array_obj) and self.looping: while idx < len(array_obj) and self.looping: