File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111* Thanks to [ TurtleWilly] ( https://github.com/TurtleWilly ) for the report in [ #66 ] ( https://github.com/DeepLcom/deepl-python/issues/66 ) .
1212* Fix a dependency error in our CI by updating to a higher poetry version in most cases.
1313* Fix getUsage request to be a HTTP GET request, not POST.
14+ * Change document translation to poll the server every 5 seconds. This should greatly reduce observed document translation processing time.
1415
1516
1617## [ 1.14.0] - 2023-02-21
Original file line number Diff line number Diff line change @@ -1077,8 +1077,8 @@ def translate_document_wait_until_done(
10771077 """
10781078 status = self .translate_document_get_status (handle )
10791079 while status .ok and not status .done :
1080- secs = ( status . seconds_remaining or 0 ) / 2.0 + 1.0
1081- secs = max ( 1.0 , min ( secs , 60.0 ))
1080+ secs = 5.0 # seconds_remaining is currently unreliable, so just
1081+ # poll equidistantly
10821082 util .log_info (
10831083 f"Rechecking document translation status "
10841084 f"after sleeping for { secs :.3f} seconds."
You can’t perform that action at this time.
0 commit comments