Skip to content

Commit

Permalink
Increase timeouts when syncing WCIF
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Jun 18, 2024
1 parent 8b31873 commit 48d9526
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/wca_live/synchronization/import.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule WcaLive.Synchronization.Import do
# When importing a competition, all inserts happen within a single
# transaction and for largest competitions it may hit the default
# transaction timeout of 15s
@import_transaction_timeout 60_000
@import_transaction_timeout 120_000

@doc """
Either inserts or updates the given competition and all the relevant
Expand Down
2 changes: 1 addition & 1 deletion lib/wca_live/wca/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ defmodule WcaLive.Wca.Api do
end

defp with_long_timeout(req) do
Req.merge(req, receive_timeout: 60_000)
Req.merge(req, receive_timeout: 120_000)
end

defp request(req, opts) do
Expand Down

0 comments on commit 48d9526

Please sign in to comment.