-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[translation] poller design #19041
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
[translation] poller design #19041
Changes from 6 commits
7f187e5
7003ea4
c50e949
9016aff
2ae44df
f175eda
6181411
b8bc3de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,17 @@ | |
|
|
||
| This version of the SDK defaults to the latest supported service version, which currently is v1.0 | ||
|
|
||
| **Breaking changes** | ||
|
|
||
| - `create_translation_job` was renamed to `begin_translation` and now returns a `DocumentTranslationPoller` | ||
| (or `AsyncDocumentTranslationPoller`) to begin the long-running operation. Call `.result()` on the poller object | ||
|
kristapratico marked this conversation as resolved.
Outdated
|
||
| to wait until the translation is complete. See the README for more information about LROs. | ||
|
kristapratico marked this conversation as resolved.
Outdated
|
||
| - Upon completion of the LRO, `begin_translation` now returns a pageable of `DocumentStatusResult`. All job-level metadata can still | ||
| be found on `poller.details`. | ||
| - `has_completed` has been removed from `JobStatusResult` and `DocumentStatusResult`. Use `poller.done()` to check if the | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ohhh interesting. So if a user wants to know if a specific document is done, they will have to check the status of the document and "calculate it" or just wait until the poller finishes, right?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. People found this confusing in the user study - they thought it was a dynamic property that would update the status in python. Moving to the poller allows us to actually have that dynamic property with
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Johan said to remove it |
||
| translation has completed. | ||
| - Client method `wait_until_done` has been removed. Use `poller.result()` to wait for the LRO to complete. | ||
|
|
||
| **New features** | ||
|
|
||
| - Authentication using `azure-identity` credentials now supported. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.