def run(self, max_running=1, dry_run=False, progress_ui="verbose"): assert max_running >= 1, max_running _update_nprocesses(self._pool, max_running) try: nodegraph = NodeGraph(self._nodes) except NodeGraphError, error: self._logger.error(error) return False
def to_dot(self, destination): """Writes a simlpe dot file to the specified destination, representing the full dependency tree, after MetaNodes have been removed. Nodes are named by their class. """ try: nodegraph = NodeGraph(self._nodes) except NodeGraphError, error: self._logger.error(error) return False
def list_output_files(self): output_files = {} nodegraph = NodeGraph(self._nodes) def collect_output_files(node): state = nodegraph.get_node_state(node) for filename in node.output_files: output_files[os.path.abspath(filename)] = state return True self.walk_nodes(collect_output_files) return output_files
def run(self, max_running=6, dry_run=False, collapse=True, verbose=True): try: nodegraph = NodeGraph(self._nodes) except NodeGraphError, error: ui.print_err(error, file=sys.stderr) return False