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:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user