[Queue] QueueClient.receive_messages() doesn't react to `messages_per_page` parameter
See original GitHub issue- Package Name: azure-storage-queue
- Python Version: Python 3.7
Describe the bug
When calling the function “receive_messages()”, all messages will return no matter what value I set messages_per_page
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
QueueClient.ReceiveMessages Method - Microsoft Learn
Receives one or more messages from the front of the queue. For more information, see Get Messages.
Read more >Azure Functions: Queue Trigger is expecting Base-64 ...
Exception binding parameter 'myQueueItem' <--- The input is not a valid Base-64 string as it contains a non-base 64 character, more than two ......
Read more >How to work with Azure Queue Storage in C# | InfoWorld
Take advantage of Azure Storage queues to store large numbers of ... but unlike Azure Service Bus, Azure Queue Storage doesn't support ...
Read more >azure-storage-queue 12.5.0 - PyPI
Microsoft Azure Azure Queue Storage Client Library for Python. ... The credential parameter may be provided in a number of different forms, depending...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi @evelyn-ys - The iterator does not dequeue all the messages before splitting into pages - instead, they are retrieved in batches, or “pages” at a time. So if you only wish to dequeue the first 5 messages - you would not loop the iterator to completion. For example, you could call
next()like this to pull only one page at a time:Hi @evelyn-ys , just wanted to inform you that I have just created a PR that makes it much simpler to pop one message from the queue. Here’s the PR: #14855 This will give you the ability to retrieve one message at a time without lots of code overhead to do so 😃