ha-handler/lib/ha_handler/pgsql.ex

11 lines
235 B
Elixir
Raw Normal View History

2022-02-19 10:18:05 +01:00
defmodule HAHandler.PGSQL do
@supervisor HAHandler.PGSQL.Supervisor
def status() do
watchers = Supervisor.which_children(@supervisor)
for {_id, pid, _type, _modules} <- watchers do
GenServer.call(pid, :status)
end
end
end