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. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user