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

[QUERY] What is the equivalent of BlobRequestOptions.setMaximumExecutionTimeInMs in v12? #24290

Closed
rupert-madden-abbott opened this issue Sep 23, 2021 · 2 comments
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@rupert-madden-abbott
Copy link

rupert-madden-abbott commented Sep 23, 2021

Query/Question
In v8, it was possible to set the maximum execution time via BlobRequestOptions.setMaximumExecutionTimeInMs.

I cannot see an equivalent in v12 and can't see it mentioned in the migration guide.

What is the equivalent in v12 (assuming there is one)? I can see HttpClientOptions has a variety of timeouts but none of them seem to be for the entire execution unless I am misunderstanding the documentation.

Setup (please complete the following information if applicable):

  • Library/Libraries: com.azure:azure-storage-blob:12.14.0
@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Sep 23, 2021
@rickle-msft
Copy link
Contributor

Hi, @rupert-madden-abbott thanks for your question! The way to do this in 12.14 is to use a ***withResponse() version of the method in question and pass a timeout value. This will have the effect of setting a maximum execution timeout for that API call

@rupert-madden-abbott
Copy link
Author

@rickle-msft thank you very much. That works great. In my particular case, that is much more convenient also.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

2 participants