Increase HRRR download timeouts to 120s for proxy/backfill
This commit is contained in:
parent
7fa8ca1ebe
commit
1a9be5eeb0
1 changed files with 2 additions and 2 deletions
|
|
@ -336,7 +336,7 @@ defmodule Microwaveprop.Weather.HrrrClient do
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
max_concurrency: 8,
|
max_concurrency: 8,
|
||||||
timeout: 60_000
|
timeout: 120_000
|
||||||
)
|
)
|
||||||
|> Enum.map(fn
|
|> Enum.map(fn
|
||||||
{:ok, result} -> result
|
{:ok, result} -> result
|
||||||
|
|
@ -405,7 +405,7 @@ defmodule Microwaveprop.Weather.HrrrClient do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp req_options do
|
defp req_options do
|
||||||
defaults = [receive_timeout: 60_000, retry: &retry?/2, max_retries: 5, retry_delay: &retry_delay/1]
|
defaults = [receive_timeout: 120_000, retry: &retry?/2, max_retries: 5, retry_delay: &retry_delay/1]
|
||||||
overrides = Application.get_env(:microwaveprop, :hrrr_req_options, [])
|
overrides = Application.get_env(:microwaveprop, :hrrr_req_options, [])
|
||||||
Keyword.merge(defaults, overrides)
|
Keyword.merge(defaults, overrides)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue