fix(conductor): Always recompute ready_tasks each tick to fix stale cache bug
This commit is contained in:
@@ -228,10 +228,8 @@ class ConductorEngine:
|
||||
if max_ticks is not None and tick_count >= max_ticks:
|
||||
break
|
||||
tick_count += 1
|
||||
# 1. Identify ready tasks
|
||||
if self._dirty:
|
||||
self._ready_tasks = self.engine.tick()
|
||||
self._dirty = False
|
||||
# 1. Identify ready tasks - always recompute to ensure fresh state
|
||||
self._ready_tasks = self.engine.tick()
|
||||
ready_tasks = self._ready_tasks
|
||||
|
||||
# 2. Check for completion or blockage
|
||||
|
||||
Reference in New Issue
Block a user