def requires_parallel(task):
    return (
        (state.env.parallel and not getattr(task, 'serial', False))
        or getattr(task, 'parallel', False)
    )
Returns True if given ``task`` should be run in parallel mode.
dataset/ETHPy150Open fabric/fabric/fabric/tasks.py/requires_parallel