fix: don't throw away timeout exit

This commit is contained in:
Zach Daniel 2022-04-08 02:12:41 -04:00
parent 20a9f76c8d
commit 25f5a27525

View file

@ -247,7 +247,7 @@ defmodule Ash.Engine do
#{Enum.map_join(opts[:requests], "\n", &summarize(&1))}
""")
exit(:timeout)
exit(:engine_timeout)
end
end)
end
@ -478,6 +478,10 @@ defmodule Ash.Engine do
|> maybe_shutdown()
end
def handle_info({:DOWN, _, _, _, :engine_timeout}, _state) do
exit(:timeout)
end
def handle_info({:DOWN, _, _, _pid, {:error, error, %Request{} = request}}, state) do
state
|> log(fn -> "Request exited in failure #{request.name}: #{inspect(error)}" end)