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 Arun Raghavan
parent 602dbc7a02
commit cab33768e2

View file

@ -944,7 +944,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();