Engine timings move to FLOW_* settings

NODE_STOP_TIMEOUT, REBUILD_WAIT, FLOW_REBUILD_WAIT, BACKOFF and
CANCEL_GRACE keep their defaults and are read from Settings.
This commit is contained in:
2026-10-15 09:50:18 +02:00
parent 1f213460ad
commit 9a029a85f8
5 changed files with 39 additions and 5 deletions
+8
View File
@@ -234,3 +234,11 @@ def test_cancelling_one_flow_lifts_only_its_quarantine():
await supervisor.cancel_all()
asyncio.run(scenario())
def test_the_restart_steps_are_read_from_the_environment(monkeypatch):
"""A list in an environment variable, so it arrives as JSON."""
from fluksio.core.config import Settings
monkeypatch.setenv("FLOW_RESTART_BACKOFF", "[2, 10]")
assert Settings().FLOW_RESTART_BACKOFF == (2.0, 10.0)