GenServer timeout

There are multiple solutions to this problem, but it depends on what you want to do.

You could simply just call GenServer.call and if you catch a “no process” error then start_link and call again.

We need more information on you state : why is it temporary, why at some point you will let it time out.

Note that a timeout will not terminate your process unless you do it explicitly.