Alexia.Governor.Poller (alexia v0.8.1)
Creates a continuous poller for each BOT keeping the state intact. It's possible to run multiple bots, each in it's own state with it's own poller. Under a supervision tree
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
There is a known problem in SSL Erlang where you get the following error {:ssl_closed, {:sslsocket, {:gen_tcp, #Port<0.27>, :tls_connection, :undefined}, [#PID<0.402.0>, #PID<0.401.0>]}} See https://github.com/benoitc/hackney/issues/464 & https://bugs.erlang.org/browse/ERL-371
Callback implementation for GenServer.init/1
.
Link to this section Functions
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
handle_info(msg, state)
There is a known problem in SSL Erlang where you get the following error {:ssl_closed, {:sslsocket, {:gen_tcp, #Port<0.27>, :tls_connection, :undefined}, [#PID<0.402.0>, #PID<0.401.0>]}} See https://github.com/benoitc/hackney/issues/464 & https://bugs.erlang.org/browse/ERL-371
This goes through to hackney,httpoison up to the poller The ports and pids don't exist anymore. The only sane way to handle this is via another "update". Since killing/sending a shutdown will restart it continuously & will pollute the logs every 3 minues
init(settings)
Callback implementation for GenServer.init/1
.