Skip to content

Commit

Permalink
Fix timeout on AWS invoke request
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderm committed Sep 10, 2024
1 parent 2603b35 commit 23ef5a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/lib/orcasite/radio/aws_client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ defmodule Orcasite.Radio.AwsClient do
%{},
invocation_type: :request_response
)
|> ExAws.request(timeout: :timer.minutes(2))
|> ExAws.request(
http_opts: [recv_timeout: :timer.minutes(2)],
retries: [max_attempts: 1]
)
|> case do
{:ok, %{"image_size" => image_size, "sample_rate" => sample_rate}} ->
{:ok, %{file_size: image_size, sample_rate: sample_rate}}
Expand Down

0 comments on commit 23ef5a1

Please sign in to comment.