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:
imSp4rky
2026-09-06 20:01:38 -06:00
parent d4ff8f48a3
commit dffb8b27e3
21 changed files with 1020 additions and 161 deletions
+3 -3
View File
@@ -19,9 +19,9 @@ log = logging.getLogger("proxies")
def initialize_proxy_providers(raise_errors: bool = False, quiet: bool = False) -> List[Any]:
"""Initialise and return available proxy providers from config.
A provider that fails to build is logged and skipped, unless *raise_errors* is set.
*quiet* drops the per-provider summary lines: rendering a provider asks some of them for
their server catalog over the network, which a repeated caller must not pay for.
A proxy provider that fails to build is logged and skipped, unless *raise_errors* is set.
*quiet* drops the per-provider summary lines: rendering a proxy provider asks some of them
for their server catalogue over the network, which a repeated caller must not pay for.
"""
proxy_providers: list = []
try: