From 48d9526e4b129cf47404138148b5a7b9671f6275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Tue, 18 Jun 2024 17:24:29 +0700 Subject: [PATCH] Increase timeouts when syncing WCIF --- lib/wca_live/synchronization/import.ex | 2 +- lib/wca_live/wca/api.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wca_live/synchronization/import.ex b/lib/wca_live/synchronization/import.ex index cbd16d98..c4578d2b 100644 --- a/lib/wca_live/synchronization/import.ex +++ b/lib/wca_live/synchronization/import.ex @@ -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 diff --git a/lib/wca_live/wca/api.ex b/lib/wca_live/wca/api.ex index fa8c77ca..17073760 100644 --- a/lib/wca_live/wca/api.ex +++ b/lib/wca_live/wca/api.ex @@ -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