From 37b7f11b79f475e8d8f00b89a36b22f7594ea31c Mon Sep 17 00:00:00 2001 From: Doc Ritezel Date: Thu, 15 Feb 2018 22:42:56 -0800 Subject: [PATCH] Configure a long timeout on credit and debit refreshes --- lib/explorer/credit.ex | 2 +- lib/explorer/debit.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/explorer/credit.ex b/lib/explorer/credit.ex index 56a51d2fcf..3e28fffadd 100644 --- a/lib/explorer/credit.ex +++ b/lib/explorer/credit.ex @@ -21,6 +21,6 @@ defmodule Explorer.Credit do end def refresh do - SQL.query!(Repo, "REFRESH MATERIALIZED VIEW CONCURRENTLY credits;", []) + SQL.query!(Repo, "REFRESH MATERIALIZED VIEW CONCURRENTLY credits;", [], timeout: 120_000) end end diff --git a/lib/explorer/debit.ex b/lib/explorer/debit.ex index 893ab34fde..dcccfcc3d2 100644 --- a/lib/explorer/debit.ex +++ b/lib/explorer/debit.ex @@ -21,6 +21,6 @@ defmodule Explorer.Debit do end def refresh do - SQL.query!(Repo, "REFRESH MATERIALIZED VIEW CONCURRENTLY debits;", []) + SQL.query!(Repo, "REFRESH MATERIALIZED VIEW CONCURRENTLY debits;", [], timeout: 120_000) end end