Starting a running flow restarts its nodes, so interval and cron Injects keep firing; a params-dict node is told settings arrive by name

This commit is contained in:
2026-11-01 10:59:14 +01:00
parent e0f5ddc3a4
commit 48d4be6093
3 changed files with 30 additions and 4 deletions
@@ -331,6 +331,12 @@ def test_stopping_one_flow_does_not_touch_the_others(
assert lifecycle == ["start a.io"]
assert {name: engine.loaded[name].node for name in ("a.io", "b.io")} == before
# Started while running is a restart: the cancelled loops come back.
lifecycle.clear()
await engine.set_enabled("a", True)
assert lifecycle == ["stop a.io", "start a.io"]
asyncio.run(asyncio.wait_for(scenario(), timeout=10))