poll the queue.