Comments (3)
Thanks for the feedback, we’ll investigate asap.
from azure-sdk-for-python.
@aymenfurter I'm actually impressed that you were able to figure out this low level "continue polling" code. All my respect for that :)
The official way is something like (not tested, so a few adjustement may be necessary):
poller = client.begin_analyze_document(
None,
continuation_token=continuation_token
)
The code will bypass starting the operation, and recreate the poller. See here:
It's not ideal that we have to pass a fake None
to all required parameters, so I asked @kashifkhan to redesign, but it may take some time.
In the meantime, your code, or the official code, all works fine.
from azure-sdk-for-python.
Hi @lmazuel
Thank you for your reply with the clean code. This looks much more robust! 👍
Is there a way to access the underlying Operation-location
instead of dealing with the continuation_token
? Ideally, I would like to use the SDK to trigger the analysis request and then use the Operation-location
to check the current status or retrieve the results, without going through the poller (essentially using the SDK as a thin layer over the API), or would you say in such a scenario it's better to directly interact with the REST API?
from azure-sdk-for-python.
Related Issues (20)
- [breaking changes tracker] Breaking - report removed operation group
- [breaking changes tracker] Update suppression mechanism to support more complex suppression scenarios
- [identity] DefaultAzureCredentials do not work properly under a proxy environment HOT 4
- azure-identity support for few remaining clients HOT 4
- BatchPoolIdentity Class info about the "type" parameter to its constructor is incorrect HOT 1
- azure-eventhub needs linting updates for pylint version 3.1.0
- SecurityCenter().security_contacts list bug HOT 1
- Accessing message type, IoT Hub and encoding information via `azure.servicebus.ServiceBusReceivedMessage` HOT 3
- Keyvault 7.5 dropped sas_definition API bindings HOT 5
- ServiceRequestError: SSL Certificate Verification Failure with Azure Document Intelligence HOT 7
- Create a Custom Translator Model using the API HOT 1
- Failed to create a index while adding Customer managed keys using SearchResourceEncryptionKey HOT 8
- Cannot paginate threat intelligence indicators (Sentinel) HOT 2
- [bct] Remove duplicate change reported when adding new class property
- [bct] Integrate with APIView
- [bct] Add integration tests
- [bct] Improve parameter ordering check
- [bct] Design adding custom/new breaking changes to the checker
- No way to register associated data assets when registering Model with SDKv2 HOT 6
- How to get client ID from object ID? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-python.