'Used to execute task queue'

@staticmethod
def get_task_queue(manager):

    assert (len(manager.task_queue) == 1)
    task = manager.task_queue.run_queue.get(timeout=0.5)
    assert task
    return task
