mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-14 13:05:09 +00:00
fix(serve): lock shared session state and throttle progress writes
Handlers share one service instance, so a per-session lock keeps two requests out of it at once. Track threads merge and write job state under one lock, and the progress sink coalesces ticks that say the same thing.
This commit is contained in:
@@ -18,7 +18,7 @@ def load_scenarios(config: pytest.Config) -> dict:
|
||||
import yaml
|
||||
|
||||
path = Path(__file__).parent / "fixtures" / "fixtures.yaml"
|
||||
data = yaml.safe_load(path.read_text()) if path.exists() else {}
|
||||
data = yaml.safe_load(path.read_text(encoding="utf-8")) if path.exists() else {}
|
||||
selected = (config.getoption("--services") or "").strip()
|
||||
services = (data or {}).get("services", {}) or {}
|
||||
if selected:
|
||||
|
||||
Reference in New Issue
Block a user