the limit is for 1 get of queue items…in one get you would get max 100…so the loop of while which is having condition of 100 will run 10 times to get all 1000 items…and will end loop after that…
if you see the screenshots there are two loops one while which runs till get queue items does not retrieve all items
cheers