OTP releases executing commands via pleroma_ctl show the parent of the process is :erl_eval
This commit is contained in:
parent
9f711ddcf8
commit
99fd9c5e38
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ def query_timeout do
|
||||||
|
|
||||||
cond do
|
cond do
|
||||||
parent |> to_string |> String.starts_with?("Elixir.Mix.Task") -> [timeout: :infinity]
|
parent |> to_string |> String.starts_with?("Elixir.Mix.Task") -> [timeout: :infinity]
|
||||||
|
parent == :erl_eval -> [timeout: :infinity]
|
||||||
true -> [timeout: 15_000]
|
true -> [timeout: 15_000]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue