We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7226817 commit 2172c88Copy full SHA for 2172c88
1 file changed
src/platform/shard/registry/worker_count.py
@@ -78,9 +78,7 @@ def calc_production_worker_count(
78
try:
79
raw = json.loads(accounts_path.read_text(encoding="utf-8"))
80
items = raw.values() if isinstance(raw, dict) else raw
81
- enabled = sum(
82
- 1 for v in items if isinstance(v, dict) and v.get("enabled", True)
83
- )
+ enabled = sum(1 for v in items if isinstance(v, dict) and v.get("enabled", True))
84
if enabled > 0:
85
need = max(need, math.ceil(enabled / bots_per))
86
except (json.JSONDecodeError, OSError, TypeError):
0 commit comments