def requires_parallel(task):
 return ((state.env.parallel and (not getattr(task, 'serial', False))) or getattr(task, 'parallel', False))

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 .