-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Storage] Added max_messages kwarg to receive_messages() #23654
Merged
vincenttran-msft
merged 15 commits into
Azure:main
from
vincenttran-msft:vincenttran/receive_messages
Apr 1, 2022
Merged
[Storage] Added max_messages kwarg to receive_messages() #23654
vincenttran-msft
merged 15 commits into
Azure:main
from
vincenttran-msft:vincenttran/receive_messages
Apr 1, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vincenttran-msft
requested review from
amishra-dev,
zezha-msft,
annatisch,
tasherif-msft and
jalauzon-msft
as code owners
March 24, 2022 21:38
annatisch
reviewed
Mar 28, 2022
sdk/storage/azure-storage-queue/azure/storage/queue/_queue_client.py
Outdated
Show resolved
Hide resolved
sdk/storage/azure-storage-queue/azure/storage/queue/aio/_models.py
Outdated
Show resolved
Hide resolved
sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_client_async.py
Outdated
Show resolved
Hide resolved
sdk/storage/azure-storage-queue/samples/queue_samples_message_async.py
Outdated
Show resolved
Hide resolved
vincenttran-msft
changed the title
[Storage] Added max_messages kwarg to recieve_messages()
[Storage] Added max_messages kwarg to receive_messages()
Mar 29, 2022
annatisch
reviewed
Mar 29, 2022
jalauzon-msft
approved these changes
Mar 30, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me! Great work. I left two comments that you can take or leave :)
rakshith91
pushed a commit
to rakshith91/azure-sdk-for-python
that referenced
this pull request
Apr 7, 2022
rakshith91
pushed a commit
to rakshith91/azure-sdk-for-python
that referenced
this pull request
Apr 10, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As raised by a customer in #17301, their concern is that there is currently no support for defining a maximum number of messages to receive (and thus could be open to infinite loops under a set of certain circumstances).
This PR adds
max_messages
keyword support forreceive_messages()
and also adds sample code showcasing its use-case inqueue_samples_message.py
(and async-equivalents).Thanks to @tasherif-msft for laying the groundwork in #18783 for this PR!