Jumar.Repo.Reconnector (Jumar v0.1.0)

View Source

Restarts the Jumar.Repo database pool every 30 minutes to ensure we are connected to the closest node. When a database node shuts down, ecto will automatically reconnect to a node still standing. Once the node comes back online, ecto will not automatically reconnect. To deal with this shortcoming, this module was created.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)