'Returns a dict showing how many auto and manual tasks are in the queue
:return: dict'

def queue_length(self):

    length = {u'auto': 0, u'manual': 0}
    for cur_item in (self.queue + [self.currentItem]):
        if isinstance(cur_item, PostProcessorTask):
            if (cur_item.mode == u'auto'):
                length[u'auto'] += 1
            else:
                length[u'manual'] += 1
    return length
