awstranscribe - increase presisigned url duration to 5 mins from 60s

Have seen a few times where machines that are in perfect time sync with a good source the requests fail with `RequestExpired` errors.

https://docs.aws.amazon.com/transcribe/latest/dg/CommonErrors.html

While not perfect, bumping to five minutes gives more a chance that the signed requests to start streaming won't be expired.
This commit is contained in:
Ray Tiley 2022-03-14 19:18:08 -04:00 committed by Sebastian Dröge
parent dd028ce97e
commit a3db85d869

View file

@ -941,7 +941,8 @@ impl Transcriber {
drop(settings);
drop(state);
let url = signed.generate_presigned_url(&creds, &std::time::Duration::from_secs(60), true);
let url =
signed.generate_presigned_url(&creds, &std::time::Duration::from_secs(5 * 60), true);
let (ws, _) = {
let _enter = RUNTIME.enter();