def get_tasks_from_spec_name(self, name):
return [task for task in self.get_tasks()<EOL>if task.task_spec.name == name]<EOL>
Returns all tasks whose spec has the given name.

:type name: str
:param name: The name of a task spec.
:rtype: Task
:return: The task that relates to the spec with the given name.