@@ -45,6 +45,12 @@ def pytest_addoption(parser) -> None:
4545 default = None ,
4646 help = ("Override the maximum number of concurrent rollouts. Pass an integer (e.g., 8, 50, 100)." ),
4747 )
48+ group .addoption (
49+ "--ep-max-concurrent-evaluations" ,
50+ action = "store" ,
51+ default = None ,
52+ help = ("Override the maximum number of concurrent evaluations. Pass an integer (e.g., 8, 50, 100)." ),
53+ )
4854 group .addoption (
4955 "--ep-print-summary" ,
5056 action = "store_true" ,
@@ -242,10 +248,15 @@ def pytest_configure(config) -> None:
242248 if norm_runs is not None :
243249 os .environ ["EP_NUM_RUNS" ] = norm_runs
244250
245- max_concurrent_val = config .getoption ("--ep-max-concurrent-rollouts" )
246- norm_concurrent = _normalize_number (max_concurrent_val )
247- if norm_concurrent is not None :
248- os .environ ["EP_MAX_CONCURRENT_ROLLOUTS" ] = norm_concurrent
251+ max_concurrent_rollouts_val = config .getoption ("--ep-max-concurrent-rollouts" )
252+ norm_concurrent_rollouts = _normalize_number (max_concurrent_rollouts_val )
253+ if norm_concurrent_rollouts is not None :
254+ os .environ ["EP_MAX_CONCURRENT_ROLLOUTS" ] = norm_concurrent_rollouts
255+
256+ max_concurrent_evals_val = config .getoption ("--ep-max-concurrent-evaluations" )
257+ norm_concurrent_evals = _normalize_number (max_concurrent_evals_val )
258+ if norm_concurrent_evals is not None :
259+ os .environ ["EP_MAX_CONCURRENT_EVALUATIONS" ] = norm_concurrent_evals
249260
250261 if config .getoption ("--ep-print-summary" ):
251262 os .environ ["EP_PRINT_SUMMARY" ] = "1"
0 commit comments