panpipe
panpipe copied to clipboard
The timeout parameter should be exposed
Hi, there should be a timeout parameter exposed.
I'm trying to start 50 requests at the same time (think of an actual service under heavy load) at it crashes:
[error] GenServer #PID<0.517.0> terminating
** (MatchError) no match of right hand side value: {:error, :timeout}
(exile 0.12.0) lib/exile/process/exec.ex:78: Exile.Process.Exec.receive_fds/2
(exile 0.12.0) lib/exile/process/exec.ex:40: Exile.Process.Exec.start/2
(exile 0.12.0) lib/exile/process.ex:906: Exile.Process.exec/1
(exile 0.12.0) lib/exile/process.ex:628: Exile.Process.handle_continue/2
(stdlib 6.0) gen_server.erl:2163: :gen_server.try_handle_continue/3
(stdlib 6.0) gen_server.erl:2072: :gen_server.loop/7
(stdlib 6.0) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
Last message: {:continue, nil}
State: %Exile.Process.State{args: %{cd: [], env: [], cmd_with_args: [~c"/usr/bin/pandoc", ~c"--to=plain"]}, owner: #PID<0.434.0>, port: nil, pipes: nil, status: :init, stderr: :console, operations: %Exile.Process.Operations{write_stdin: nil, read_stdout: nil, read_stderr: nil, read_stdout_or_stderr: nil}, exit_ref: #Reference<0.2176484813.3143630852.61559>, monitor_ref: #Reference<0.2176484813.3143630852.61561>}
This seems to be an issue in the exile library which panpipe uses. I've opened an issue there: https://github.com/akash-akya/exile/issues/51
Please follow up there for further discussion about this problem.