diff options
author | mdooley <mdooley@google.com> | 2017-11-28 19:54:52 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-11-29 11:49:57 -0800 |
commit | 00d18e0efe89d7bbd4c69de6988ef6f9a62df782 (patch) | |
tree | 750103032e4860ab2be3f540eb5993f45e133365 /java/com/android/voicemail/impl/transcribe/grpc/TranscriptionResponseAsync.java | |
parent | 1306455ce5eb75c74790526ec3687293221a42ba (diff) |
Switching to alarms and exponential backoff while polling for transcription result
This cl switches the way asynchronous transcription tasks poll for their
results. it has been observed that sometimes the server side transcription
takes longer than expected (sometimes many minutes), so instead of blocking
a thread for all that time this cl schedules an alarm for the next time to
poll. it also uses an exponential backoff scheme to determine the poll times
and increases the maximum total polling time from 20 seconds to 20 minutes.
Bug: 66966157
Test: manual and unit tests
PiperOrigin-RevId: 177257577
Change-Id: Ib2998f03cc418d5241ccffec71ba3945c9fe4cbc
Diffstat (limited to 'java/com/android/voicemail/impl/transcribe/grpc/TranscriptionResponseAsync.java')
0 files changed, 0 insertions, 0 deletions