Configure a long timeout on credit and debit refreshes

pull/42/head
Doc Ritezel 7 years ago
parent 1abbf61404
commit 37b7f11b79
  1. 2
      lib/explorer/credit.ex
  2. 2
      lib/explorer/debit.ex

@ -21,6 +21,6 @@ defmodule Explorer.Credit do
end end
def refresh do def refresh do
SQL.query!(Repo, "REFRESH MATERIALIZED VIEW CONCURRENTLY credits;", []) SQL.query!(Repo, "REFRESH MATERIALIZED VIEW CONCURRENTLY credits;", [], timeout: 120_000)
end end
end end

@ -21,6 +21,6 @@ defmodule Explorer.Debit do
end end
def refresh do def refresh do
SQL.query!(Repo, "REFRESH MATERIALIZED VIEW CONCURRENTLY debits;", []) SQL.query!(Repo, "REFRESH MATERIALIZED VIEW CONCURRENTLY debits;", [], timeout: 120_000)
end end
end end

Loading…
Cancel
Save