def effective_n_jobs(n_jobs=(-1)):
 (backend, _) = get_active_backend()
 return backend.effective_n_jobs(n_jobs=n_jobs)

def effective_n_jobs ( n_jobs = ( - 1 ) ) : ( backend , _ ) = get_active_backend ( ) return backend . effective_n_jobs ( n_jobs = n_jobs )
determine the number of jobs that can actually run in parallel n_jobs is the is the number of workers requested by the callers .