'This function returns true if the node is currently working on a task,
or false if the node is currently idle.'

def is_node_working(self, node):

    nodename = node.alias
    for j in self.jobs:
        qn = j.get('queue_name', '')
        if (nodename in qn):
            log.debug(('Node    %s    is    working' % node.alias))
            return True
    log.debug(('Node    %s    is    IDLE' % node.id))
    return False
