fix(reuse_worker): remove noqa: BLE001 (rule not in ruff select)
fix(generator): correct service pool count in _SVC_MIN/_SVC_MAX comment BLE001 is not in ruff.toml select (F/ANN/RUF/E/W only); the suppressions were whispering apologies to a linter that wasn't listening. Generator comment now cites the actual ~28-entry non-singleton service pool.
This commit is contained in:
@@ -70,7 +70,7 @@ async def run_reuse_loop(
|
||||
wake_tasks.append(asyncio.create_task(
|
||||
_run_control_listener_signal(bus, "reuse-correlator"),
|
||||
))
|
||||
except Exception as exc: # noqa: BLE001
|
||||
except Exception as exc:
|
||||
log.warning(
|
||||
"reuse correlator: bus unavailable, running in poll-only mode: %s",
|
||||
exc,
|
||||
@@ -86,7 +86,7 @@ async def run_reuse_loop(
|
||||
results = await engine.correlate_credential_reuse(
|
||||
repo, min_targets=min_targets,
|
||||
)
|
||||
except Exception: # noqa: BLE001
|
||||
except Exception:
|
||||
log.exception("reuse correlator: tick failed")
|
||||
results = []
|
||||
|
||||
@@ -143,7 +143,7 @@ async def _wake_on(bus: BaseBus, wake: asyncio.Event, pattern: str) -> None:
|
||||
wake.set()
|
||||
except asyncio.CancelledError:
|
||||
raise
|
||||
except Exception as exc: # noqa: BLE001
|
||||
except Exception as exc:
|
||||
log.warning(
|
||||
"reuse correlator: subscriber for %s died (%s); falling back to poll",
|
||||
pattern, exc,
|
||||
|
||||
@@ -23,7 +23,9 @@ from decnet.topology.config import (
|
||||
_PlannedLAN,
|
||||
)
|
||||
|
||||
# Range of services per randomly assigned decky (matches decnet.fleet).
|
||||
# Per-decky service count bounds. 1 minimum keeps every decky functional;
|
||||
# 3 maximum balances service diversity against subnet IP utilization — the
|
||||
# full non-singleton service pool (~28 entries) makes higher counts wasteful.
|
||||
_SVC_MIN = 1
|
||||
_SVC_MAX = 3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user