[Bugfix] Reject 0 or non-positive max concurrency (#54887)
Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user