Process entire queue until empty