executorlib.standalone.inputcheck.check_restart_limit#
- executorlib.standalone.inputcheck.check_restart_limit(restart_limit: int, block_allocation: bool = True) None[source]#
Check that restart_limit is only used together with block_allocation.
- Parameters:
restart_limit (int) – Maximum number of times a worker process may be restarted.
block_allocation (bool) – Whether block allocation is enabled. Defaults to True.
- Raises:
ValueError – If restart_limit is non-zero and block_allocation is False.