executorlib.standalone.inputcheck.check_max_workers_and_cores

executorlib.standalone.inputcheck.check_max_workers_and_cores#

executorlib.standalone.inputcheck.check_max_workers_and_cores(max_workers: int | None, max_cores: int | None) None[source]#

Check that neither max_workers nor max_cores is set when using a pysqa-based backend.

Parameters:
  • max_workers (int, optional) – Maximum number of workers.

  • max_cores (int, optional) – Maximum number of cores.

Raises:

ValueError – If max_workers or max_cores is not None.