Flows and dashboards are created by POST under an issued or superuser-pinned id; PUT only updates; deleted flows leave a tombstone with their key; the controller stores by id and runs by key, hooks live under /hooks/<flow id>; a key with state or queued work behind it is refused until cleared

This commit is contained in:
2026-11-02 17:41:23 +01:00
parent fae85f5ecb
commit 08a6376836
63 changed files with 2832 additions and 936 deletions
+3 -3
View File
@@ -318,7 +318,7 @@ def test_stopping_one_flow_does_not_touch_the_others(
before = {name: engine.loaded[name].node for name in ("a.io", "b.io")}
lifecycle.clear()
await engine.set_enabled("a", False)
await engine.set_enabled("a", "a", False)
assert lifecycle == ["stop a.io"]
# Still built, still the same objects: only the lifecycle changed.
@@ -326,14 +326,14 @@ def test_stopping_one_flow_does_not_touch_the_others(
assert engine.disabled == {"a"}
lifecycle.clear()
await engine.set_enabled("a", True)
await engine.set_enabled("a", "a", True)
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)
await engine.set_enabled("a", "a", True)
assert lifecycle == ["stop a.io", "start a.io"]