In reply to Salman devarenti :
As the Cookbook chapter points out, you don’t use get_next_item() when you want to get multiple sequence items. You use get() which will remove the item from the queue.
If you use get_next_item(), you need to use item_done() to remove the item from the queue.