You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Resolve scheduler leakage and make scheduler instantiation explicit
- Remove implicit on-demand fabrication of DynamicNodeScheduler during child Context derivation to avoid mutating parent context state during execution.
- Always instantiate and set the DynamicNodeScheduler at the root level in the runner.
- Clear `_workflow_scheduler` on execution exit (in both runner and workflow loops) to prevent scheduler lifetime leakage.
- Update tests to explicitly set `rerun_on_resume = True` where resumption of mock nodes is expected.
- Always rerun Workflow nodes on resume to allow their internal loops to correctly drive resumption of child nodes.
- Use `weakref` for `_workflow_scheduler` in `Context` to prevent reference cycle between scheduler, tasks, and contexts.
PiperOrigin-RevId: 945945253
0 commit comments