[Bugfix] Reject 0 or non-positive max concurrency (#54887)

Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
This commit is contained in:
Taneem Ibrahim
2026-09-04 15:59:29 -04:00
committed by GitHub
parent 2524051385
commit 3284af6bf1
+3
View File
@@ -2014,6 +2014,9 @@ def main(args: argparse.Namespace) -> dict[str, Any]:
async def main_async(args: argparse.Namespace) -> dict[str, Any]:
print(args)
if args.max_concurrency is not None and args.max_concurrency <= 0:
raise ValueError("--max-concurrency must be greater than 0")
random.seed(args.seed)
np.random.seed(args.seed)