def _calc_overrunnable_workers(max_workers, max_overrunnable, num_jobs):
    return min(
        max_workers - 1,
        num_jobs - 1,
        max_overrunnable)
dataset/ETHPy150Open bloomberg/phabricator-tools/py/phl/phlmp_cyclingpool.py/_calc_overrunnable_workers/original