-
Notifications
You must be signed in to change notification settings - Fork 850
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
Set floor of one second for polling delay #15905
Conversation
Part of the fix for #14683 |
func (l *Poller) PollUntilDone(ctx context.Context, freq time.Duration, respType interface{}) (*http.Response, error) { | ||
if freq == 0 { |
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.
This would prevent a no-pause delay cycle.
i.e. I want a duration of 0 seconds. Would be nice to support that and make nil
represent "default"?
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.
I don't think this is a real scenario. As this is an LRO, we've already indicated to the customer that this operation is going to take more than the "standard" amount of time (I believe ARM defines this a 2-4 seconds for a non-LRO operation). Excessive polling just leads to throttling.
To avoid excessive polling. Add 429 to list of retriable HTTP status codes.
96906b6
to
f9bc80b
Compare
* Add ARM-specific bearer token policy (#15885) * Add ARM-specific bearer token policy Removed support for auxiliary tenants from the runtime version of this policy as this is specific to ARM. * add tests for expiring resource * remove superfluous x-ms-date header * remove policy.TokenRequestOptions from AuthenticationOptions * refactor bearer token policy constructors * Update azservicebus test fake (#15735) * Add release date for azcore v0.20.0 (#15915) * Increment version for azcore releases (#15919) Increment package version after release of azcore * Fully automate cluster buildout. Add azure file share mount to stress tests. (#15918) Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com> * Fix azidentity CI (#15886) * Add DefaultAzureCredential struct (#15759) * Add AzureCLICredentialOptions.TenantID (#15761) * Changed ThroughputOptions to use azcore Etag (#15900) Co-authored-by: Jason Amos <digitalamerica@gmail.com> * [azservicebus] Cleanup/changes from API review (removal of processor and singular receives) (#15901) API trimming/modifications based on review: * Unexport Processor * Unexport the singular message APIs (ReceiveMessage, ReceiveDeferredMessage) in favor of their plural counterparts. * Deleting processor sample but would have anyways since we had an example file for it. * Remove mentions of the Processor from our readme/migrationguide * Remove mentions of the Processor in doc comments on exported types * Clean up/organize script and json files in top level directory (#15453) * Clean up/organize script and json files in top level directory * Add eng/tools to coverage config and alphabetize it * [Cosmos DB] [API Review] Move to azcore 0.20 and fit and finish (#15927) * Port to azcore 0.20 * Item using byte array * adding header policy tests * more tests * readme * to int32 * lint * Set floor of one second for polling delay (#15905) To avoid excessive polling. Add 429 to list of retriable HTTP status codes. * Release sdk/resourcemanager/streamanalytics/armstreamanalytics v0.1.0 (#15840) * [Release] sdk/resourcemanager/streamanalytics/armstreamanalytics/0.1.0 generation from spec commit: 3c16aae50c7110e1aad241ac93995621d4093d46 * fix * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by: Arcturus <ufo54153@gmail.com> * Release sdk/resourcemanager/databricks/armdatabricks v0.1.0 (#15842) * [Release] sdk/resourcemanager/databricks/armdatabricks/0.1.0 generation from spec commit: 3c16aae50c7110e1aad241ac93995621d4093d46 * fix * Update CHANGELOG.md Co-authored-by: Dapeng Zhang <ufo54153@gmail.com> * Release sdk/resourcemanager/scheduler/armscheduler v0.1.0 (#15843) * [Release] sdk/resourcemanager/scheduler/armscheduler/0.1.0 generation from spec commit: 3c16aae50c7110e1aad241ac93995621d4093d46 * fix * Update CHANGELOG.md Co-authored-by: Dapeng Zhang <ufo54153@gmail.com> * Release sdk/resourcemanager/notificationhubs/armnotificationhubs v0.1.0 (#15844) * [Release] sdk/resourcemanager/notificationhubs/armnotificationhubs/0.1.0 generation from spec commit: 2a5304178ab7416e40622808dea5b630fb7854d9 * fix * Update CHANGELOG.md Co-authored-by: Dapeng Zhang <ufo54153@gmail.com> * Release sdk/resourcemanager/search/armsearch v0.1.0 (#15846) * [Release] sdk/resourcemanager/search/armsearch/0.1.0 generation from spec commit: 2a5304178ab7416e40622808dea5b630fb7854d9 * fix * Update CHANGELOG.md Co-authored-by: Dapeng Zhang <ufo54153@gmail.com> * Release sdk/resourcemanager/alertsmanagement/armalertsmanagement v0.1.0 (#15847) * Release sdk/resourcemanager/alertsmanagement/armalertsmanagement v0.1.0 * Update CHANGELOG.md Co-authored-by: Dapeng Zhang <ufo54153@gmail.com> * Release sdk/resourcemanager/mediaservices/armmediaservices v0.1.0 (#15866) * [Release] sdk/resourcemanager/mediaservices/armmediaservices/0.1.0 generation from spec commit: c4d19b8362dfa8001c78062659ab88c529ece7b6 * fix * Update CHANGELOG.md Co-authored-by: Dapeng Zhang <ufo54153@gmail.com> * Release sdk/resourcemanager/cognitiveservices/armcognitiveservices v0.1.0 (#15890) * [Release] sdk/resourcemanager/cognitiveservices/armcognitiveservices/0.1.0 generation from spec commit: 762ca1046eedf2b2dba28784dd4aebffab2a9897 * fix * Update CHANGELOG.md Co-authored-by: Dapeng Zhang <ufo54153@gmail.com> * Release sdk/resourcemanager/relay/armrelay v0.1.0 (#15892) * [Release] sdk/resourcemanager/relay/armrelay/0.1.0 generation from spec commit: 769e09cac92c50b1f9fa6468775b7cb7de16bb06 * fix * Update CHANGELOG.md Co-authored-by: Dapeng Zhang <ufo54153@gmail.com> * Release sdk/resourcemanager/managementgroups/armmanagementgroups v0.1.0 (#15909) * [Release] sdk/resourcemanager/managementgroups/armmanagementgroups/0.1.0 generation from spec commit: 4aebac1bd77282ae8efe3dd2886e864537d31762 * fix * Update CHANGELOG.md Co-authored-by: Dapeng Zhang <ufo54153@gmail.com> * Align azidentity environment variables with other SDKs (#15928) * [Cosmos DB] Use time.Time to represent Timestamps/LastModified (#15939) * manual serialization * with pointer * boolean signature * Removing dead code * Add latest released version to prepare prerelease (#15941) Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com> * Release sdk/resourcemanager/resourcehealth/armresourcehealth v0.1.0 (#15910) * [Release] sdk/resourcemanager/resourcehealth/armresourcehealth/0.1.0 generation from spec commit: 4aebac1bd77282ae8efe3dd2886e864537d31762 * fix * Update CHANGELOG.md Co-authored-by: Dapeng Zhang <ufo54153@gmail.com> * [azservicebus] Allow for renewing message and session locks (#15929) Adding in message lock renewal and session lock renewal. * Updating codeowners for Service Bus (#15943) CODEOWNERS for Service Bus * Remove old CI parameter (#15947) * Release sdk/resourcemanager/datalake-analytics/armdatalakeanalytics v0.1.0 (#15938) * [Release] sdk/resourcemanager/datalake-analytics/armdatalakeanalytics/0.1.0 generation from spec commit: 348665d474283df6a73d6a2ec6defef271251f13 * fix * Update CHANGELOG.md Co-authored-by: Dapeng Zhang <ufo54153@gmail.com> * Increment version for resourcemanager/resourcehealth/armresourcehealth releases (#15952) Increment package version after release of resourcemanager/resourcehealth/armresourcehealth * Increment version for resourcemanager/managementgroups/armmanagementgroups releases (#15951) Increment package version after release of resourcemanager/managementgroups/armmanagementgroups * Increment version for resourcemanager/mediaservices/armmediaservices releases (#15949) Increment package version after release of resourcemanager/mediaservices/armmediaservices * Increment version for resourcemanager/relay/armrelay releases (#15948) Increment package version after release of resourcemanager/relay/armrelay * Increment version for resourcemanager/databricks/armdatabricks releases (#15933) Increment package version after release of resourcemanager/databricks/armdatabricks * Increment version for resourcemanager/streamanalytics/armstreamanalytics releases (#15932) Increment package version after release of resourcemanager/streamanalytics/armstreamanalytics * Increment version for resourcemanager/servicefabric/armservicefabric releases (#15873) Increment package version after release of resourcemanager/servicefabric/armservicefabric * Increment version for resourcemanager/mysql/armmysqlflexibleservers releases (#15868) Increment package version after release of resourcemanager/mysql/armmysqlflexibleservers * Increment version for resourcemanager/appplatform/armappplatform releases (#15860) Increment package version after release of resourcemanager/appplatform/armappplatform * update version number (#15850) * Increment version for resourcemanager/datalake-analytics/armdatalakeanalytics releases (#15953) Increment package version after release of resourcemanager/datalake-analytics/armdatalakeanalytics * Increment package version after release of resourcemanager/cognitiveservices/armcognitiveservices (#15950) * Increment package version after release of resourcemanager/notificationhubs/armnotificationhubs (#15937) * Increment package version after release of resourcemanager/alertsmanagement/armalertsmanagement (#15936) * Increment package version after release of resourcemanager/search/armsearch (#15935) * Increment package version after release of resourcemanager/scheduler/armscheduler (#15934) * Increment package version after release of resourcemanager/operationsmanagement/armoperationsmanagement (#15869) * Increment package version after release of resourcemanager/mysql/armmysql (#15867) * Increment package version after release of resourcemanager/recoveryservices/armrecoveryservices (#15861) * Increment package version after release of resourcemanager/datalake-store/armdatalakestore (#15859) * Increment version for resourcemanager/iothub/armiothub releases (#15832) * Increment package version after release of resourcemanager/iothub/armiothub * bump version Co-authored-by: ArcturusZhang <dapzhang@microsoft.com> * Increment version for resourcemanager/security/armsecurity releases (#15827) * Increment package version after release of resourcemanager/security/armsecurity * bump version Co-authored-by: ArcturusZhang <dapzhang@microsoft.com> * Revise azidentity errors (#15924) * missing coverage for sb Co-authored-by: Joel Hendrix <jhendrix@microsoft.com> Co-authored-by: Charles Lowell <chlowe@microsoft.com> Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com> Co-authored-by: Jason <71847735+jay-most@users.noreply.github.com> Co-authored-by: Jason Amos <digitalamerica@gmail.com> Co-authored-by: Richard Park <51494936+richardpark-msft@users.noreply.github.com> Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com> Co-authored-by: JiahuiPeng <46921893+804873052@users.noreply.github.com> Co-authored-by: Arcturus <ufo54153@gmail.com> Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com> Co-authored-by: Dapeng Zhang <dapzhang@microsoft.com>
To avoid excessive polling. Add 429 to list of retriable HTTP status codes.
Adding resourceconnector - Appliance GA API version (Azure#20681) * Adding resourceconnector - appliance GA API verson * Update swagger PR to add ArtifactURL and Another SSHKey type - ScopesAccessKey * Commiting previous API Version 2022-04-15-preview * Commiting latest API Version 2022-10-27 * Update to v3 types: * Adding words to custom-words.txt * run prettier check * Use v3 for appliance resource type too * resolve merge conflicts in custom words.txt * add in readmes * Add blockchain to latest profile * Add additional types * track2 modify eventhub readme.go.md (Azure#15338) * track2 modify operationalinsights readme.go.md (Azure#15354) * track2 modify security readme.go.md (Azure#15357) * track2 modify eventgrid readme.go.md (Azure#15358) * [Hub Generated] Public private branch 'dev-azure-kusto-Microsoft.Kusto-2021-08-27' (Azure#15905) * Adds base for updating Microsoft.Kusto from version stable/2021-01-01 to version 2021-08-27 * Updates readme * Updates API version in new specs and examples * Swagger changes * it1 * hh * it2 * it3 * it5 * it6 * it7 * readme * it10 * it11 * it11 * it 12 * it 13 * prettier * python * allowedIpRangeList - remove default * bassel changes * checkNameAvailability * fix lint * checkName * fix * managedPrivate check name * prettier * Update readme.python.md * add attached enum * Dor comments * fix description * readOnly Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> * update the format to int64 for creationtimestamp and expirationtimestamp * Updating Delete example to include location header for 202 response * fix header in delete example Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com> Co-authored-by: JiahuiPeng <46921893+804873052@users.noreply.github.com> Co-authored-by: hila levi <88654259+hilalevi170@users.noreply.github.com> Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> Co-authored-by: Aditi Malladi <amalladi@Aditis-MacBook-Pro.local>
To avoid excessive polling.
Add 429 to list of retriable HTTP status codes.