Skip to content

Commit

Permalink
Disable view execution timeout for Poison
Browse files Browse the repository at this point in the history
View can take a lot of time to execute
  • Loading branch information
vaartis committed Apr 15, 2018
1 parent d103321 commit 669491b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/couchdb_ex_worker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ defmodule CouchDBEx.Worker do
with {:ok, resp} <- HTTPClient.get(
"#{state[:hostname]}:#{state[:port]}/#{db}/_design/#{ddoc}/_view/#{view}",
[],
params: opts
params: opts,
recv_timeout: :infinity # Views can take a long time
),
%{"total_rows" => _} = json_resp <- resp.body |> Poison.decode!
do {:reply, {:ok, json_resp}, state}
Expand Down

0 comments on commit 669491b

Please sign in to comment.