def handleNewGraphRequestApply(self, graph):
        '''Handles a graph submission request and closes the given ticket
        according to the result of the process.
        '''
        prevTimer = time.time()
        nodes = self.dispatchTree.registerNewGraph(graph)

        logging.getLogger('main.dispatcher').info("%.2f ms --> graph registered" % ((time.time() - prevTimer) * 1000))
        prevTimer = time.time()

        # handles the case of post job with paused status
        for node in nodes:
            try:
                if node.tags['paused'] == 'true' or node.tags['paused'] == True:
                    node.setPaused(True)
            except __HOLE__:
                continue

        logging.getLogger('main.dispatcher').info("%.2f ms --> jobs set in pause if needed" % ((time.time() - prevTimer) * 1000))
        prevTimer = time.time()

        logging.getLogger('main.dispatcher').info('Added graph "%s" to the model.' % graph['name'])
        return nodes
dataset/ETHPy150Open mikrosimage/OpenRenderManagement/src/octopus/dispatcher/dispatcher.py/Dispatcher.handleNewGraphRequestApply