Hi,
I try do many async queries :
def myQuery (symbol) do
" myQuery with #{symbol} … "
end
[“AAA”,“BBB”, … ]
|> Enum.map (fn symbol → Task.async(fn → Ecto.Adapters.SQL.query!(MyRepo.Repo, myQuery(symbol)) end ) end )
But I’ve got error :
[error] Task pid<0.11971.0> started from pid<0.11412.0> terminating
** (stop) exited in: :gen_server.call(MyRepo.Repo.Pool, {:checkout,reference<0.2936218770.3260547073.261662>, true}, 5000)
** (EXIT) time out
What should I change to avoid error ?
Thanks for answer .


















