Skip to content
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

[ServiceBus] release message in background #23285

Merged
merged 11 commits into from
Apr 6, 2022

Conversation

yunhaoling
Copy link
Contributor

@yunhaoling yunhaoling commented Mar 2, 2022

addressing issue: #23020

based on @annatisch 's approach: #23212

how it works:

  • overload the keep-alive background task for polling socket when prefetch is 1
  • using threading.event for indication of whether a message arrives in a receiving context or non-receiving context

cons:
overloading keep_alive result in bad-perf, increase cpu workload.

@ghost ghost added the Service Bus label Mar 2, 2022
@azure-sdk
Copy link
Collaborator

API changes have been detected in azure-servicebus. You can review API changes here

API changes

-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000001D79C98F4F0>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000025A076DB4F0>, 
-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000001D79C47D0F0>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000025A071CD120>, 

@azure-sdk
Copy link
Collaborator

API changes have been detected in azure-servicebus. You can review API changes here

API changes

-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000024C69033070>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x00000191C579EDD0>, 
-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000024C68B11D20>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x00000191C5271D50>, 

@azure-sdk
Copy link
Collaborator

API changes have been detected in azure-servicebus. You can review API changes here

API changes

-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000024C69033070>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000001855E3FEDD0>, 
-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000024C68B11D20>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000001855DED1D50>, 

@azure-sdk
Copy link
Collaborator

API changes have been detected in azure-servicebus. You can review API changes here

API changes

-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000023A43737070>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000001A4FD92F220>, 
-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000023A43211D20>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000001A4FD401D50>, 

@yunhaoling yunhaoling marked this pull request as ready for review March 9, 2022 21:10
@azure-sdk
Copy link
Collaborator

API changes have been detected in azure-servicebus. You can review API changes here

API changes

-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000019AD5823070>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000001FF65B334C0>, 
-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000019AD5301D20>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000001FF65601D50>, 

@azure-sdk
Copy link
Collaborator

API changes have been detected in azure-servicebus. You can review API changes here

API changes

-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000019AD5823070>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000001F022C034C0>, 
-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000019AD5301D20>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000001F0226D1D50>, 

@yunhaoling
Copy link
Contributor Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yunhaoling
Copy link
Contributor Author

/azp run python - servicebus - tests

@azure-sdk
Copy link
Collaborator

API changes have been detected in azure-servicebus. You can review API changes here

API changes

-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000002AE0D367070>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000025C3D8AF4C0>, 
-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000002AE0CE41D20>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000025C3D381D50>, 

@yunhaoling
Copy link
Contributor Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yunhaoling
Copy link
Contributor Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-sdk
Copy link
Collaborator

API changes have been detected in azure-servicebus. You can review API changes here

API changes

-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000002418F3D3070>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000002C4CF99E9B0>, 
-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000002418EEB1CF0>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000002C4CF471D80>, 

@yunhaoling
Copy link
Contributor Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-sdk
Copy link
Collaborator

API changes have been detected in azure-servicebus. You can review API changes here

API changes

-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000015A53883070>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000002208C87E9B0>, 
-             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x0000015A53361DB0>, 
+             filter: Union[CorrelationRuleFilter, SqlRuleFilter] = <azure.servicebus.management._models.TrueRuleFilter object at 0x000002208C351D80>, 

@yunhaoling
Copy link
Contributor Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-sdk
Copy link
Collaborator

API change check for azure-servicebus

API changes have been detected in azure-servicebus. You can review API changes here

API changes

-             filter: Optional[Union[CorrelationRuleFilter, SqlRuleFilter]] = <azure.servicebus.management._models.TrueRuleFilter object at 0x00000252A5A27220>, 
+             filter: Optional[Union[CorrelationRuleFilter, SqlRuleFilter]] = <azure.servicebus.management._models.TrueRuleFilter object at 0x00000239DEF53100>, 
-             filter: Optional[Union[CorrelationRuleFilter, SqlRuleFilter]] = <azure.servicebus.management._models.TrueRuleFilter object at 0x00000252A54F9540>, 
+             filter: Optional[Union[CorrelationRuleFilter, SqlRuleFilter]] = <azure.servicebus.management._models.TrueRuleFilter object at 0x00000239DEA19540>, 

@yunhaoling yunhaoling merged commit 233fbea into Azure:main Apr 6, 2022
@yunhaoling yunhaoling deleted the yuling/sb/release-msg branch April 6, 2022 08:01
rakshith91 pushed a commit to rakshith91/azure-sdk-for-python that referenced this pull request Apr 7, 2022
* release message in background

* decouple keep receiving and fix async

* small fix

* fix mypy and pylint

* review feedback

* fix pylint and update changelog

* update test to reflect the latest change

* add tests and replace uamqp keep alive

* fix impl bug

* add test non-releasing behavior

* update release date
rakshith91 pushed a commit to rakshith91/azure-sdk-for-python that referenced this pull request Apr 10, 2022
* release message in background

* decouple keep receiving and fix async

* small fix

* fix mypy and pylint

* review feedback

* fix pylint and update changelog

* update test to reflect the latest change

* add tests and replace uamqp keep alive

* fix impl bug

* add test non-releasing behavior

* update release date
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-python that referenced this pull request Apr 18, 2023
Release machinelearningservices microsoft.machine learning services 2023 04 01 preview (Azure#23449)

* Adds base for updating Microsoft.MachineLearningServices from version preview/2023-02-01-preview to version 2023-04-01-preview

* Updates readme

* Updates API version in new specs and examples

* [Preview] Bring Back Scheduled Shutdown MLC models (Azure#23040)

* [Preview] Bring Back Scheduled Shutdown MLC models

* update example json

---------

Co-authored-by: Naman Agarwal <naagarw@microsoft.com>

* add minLength:1 prop to required strings (Azure#23108)

* add parameter enableDataIsolation to workspace properties (Azure#23061)

* add parameter enableDataIsolation to workspace properties

* minor change to re-run the test pipelines

* minor comment change to trigger the test pipeline again

---------

Co-authored-by: Mingwei He <mingweihe@microsoft.com>

* expose connection expiryTime in 2023-04-01-preview swagger (Azure#23118)

* Add Workspace Managed Network Swagger (Azure#23283)

* add managed network swagger

* fix validation errors

* address ARM comments

* fix example

* do not flatten outbound rules, need nested props

---------

Co-authored-by: Josh Harrington <joharrington@microsoft.com>

* Add Registries 2023-04-01-Preview Swagger (Azure#23163)

* x

* fix spellcheck

* update preview examples

* update examples

* fix for swagger modelvalidation gate

* examples should be in camelCase

* more fixes for pr gates

* fix syntax

* add registryNameParameter

* addressing comments

* fix one more location property

* address comments

* update PrivateEndpointConnectionProperties

* git didn't push all of my changes

* fix circular dependency

* update

* PATCH operation should have sku, identity properties

---------

Co-authored-by: Komal Yadav <komalyadav@microsoft.com>

* MFE April-preview 2023 staging (Azure#23165)

* update mfe.json to latest

* update preview examples

* make it pretty

* createOrUpload example touch-ups

* pretty check

* POST pendingUpload lint violation, description, and array

* spell check fixes

* featurestore updates + notification patch updates to align with jobs

* fix feature examples

* rename PendingUpload -> startPendingUpload + better description

* prettier feature get/list.json

* update Job-Update example

* update descriptions

* x-ms-secret-true, remove wasbs and pattern for registries

* update examples to remove wasbsUri

* update registry refrence and add pattern to featuresetname

* temporarily add in registry reference

* one more pattern add-on for featuresetname

* remove wasbs since that is no longer a part of PR

* bump

* add empty secrets to examples - can show object but hide secret itself

* original-uri -> azure-async-operation

* createOrGetPendingUpload -> createOrGetStartPendingUpload

* add ms-secret to uri to keep it from breaking relative to GA

---------

Co-authored-by: Kayla Ames <kaseager@microsoft.com>

* [HUB] update team configuration related properties (Azure#23285)

* [HUB] update team configuration related properties

* Update description

* fix merge issue

* update workspace get operation example with managenetwork included (Azure#23411)

* custom words merge

* swap to original-uri

* v5->v3

* registryRenames

* mlc update to align with v3 types

* finish updating examples

---------

Co-authored-by: Naman Agarwal <namanag16@gmail.com>
Co-authored-by: Naman Agarwal <naagarw@microsoft.com>
Co-authored-by: Teddy Todorov <thtodoro@microsoft.com>
Co-authored-by: Ming <hemingwei2017@gmail.com>
Co-authored-by: Mingwei He <mingweihe@microsoft.com>
Co-authored-by: jiewe <127981966+jiewe@users.noreply.github.com>
Co-authored-by: Josh Harrington <53531213+joshharrin@users.noreply.github.com>
Co-authored-by: Josh Harrington <joharrington@microsoft.com>
Co-authored-by: Komal Yadav <23komal.yadav23@gmail.com>
Co-authored-by: Komal Yadav <komalyadav@microsoft.com>
Co-authored-by: Kayla Ames <kaseager@microsoft.com>
Co-authored-by: ZhidaLiu <zhili@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants