def all_predecessors(self, as_dict=False): """ :return: (list) all tasks that descend from this task in the task_graph """ d = breadth_first_search.bfs_predecessors(self.execution.task_graph().reverse(copy=False), self) if as_dict: return d return set(d.values())