feat(pool): no machine-wide width - 128 passes per available account
Jorijn: "there is no need to do a global cap anymore, the cap should be 128 per available account". `--concurrency` no longer defaults to 128: the limits are each OAuth account's 128 (and the local login's), every driver's counted, an API seat's own REVIEW_GATES_API_CONCURRENCY, and free memory. `--concurrency N` still caps the machine when given; a value below 1 is a usage error. The dump's args.concurrency is null then. The board's driver settings read `128 per account`, which every driver's `seats` shows as that driver's width, and the `seats` header says a width is that driver's cap. The Scheduler test runs 300 passes on two accounts: 256 at once, 128 each. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c28307601b
commit
61ee4602f4
12 changed files with 98 additions and 19 deletions
|
|
@ -1466,7 +1466,9 @@ namespace Crafter::Review::SeatPool {
|
|||
for (auto it = all.begin(); it != all.end(); ++it) {
|
||||
if (it.key() != me) drivers[it.key()] = it.value();
|
||||
}
|
||||
const std::string width = cap ? std::format("; {} in flight on this machine, the cap is {}", TotalInflight(data), *cap) : std::string();
|
||||
const std::int64_t perAccount = Dyn::Has(config, "oauthConcurrency") ? Int(AsDouble(config.at("oauthConcurrency"))) : OauthConcurrency;
|
||||
const std::string width = cap ? std::format("; {} in flight on this machine, the cap is {}", TotalInflight(data), *cap)
|
||||
: std::format("; {} in flight on this machine, at most {} per account", TotalInflight(data), perAccount);
|
||||
if (drivers.empty()) return {std::format("board: {}; no other driver running{}", path.string(), width)};
|
||||
std::vector<std::string> each;
|
||||
for (auto it = drivers.begin(); it != drivers.end(); ++it) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue