EctoSqlReadiness (ecto_sql_readiness v0.2.0)
How can we ensure that there are no pending migration during deployment? How can we ensure that Ecto is ready?
This library has been used with AWS Codedeploy, so we don't send any traffic to the containers unless we ensure that Ecto is ready to work.
@spec probes([repo()]) :: :ok | :fail_connection | :pending_migrations
Uses to known when the Ecto Repo is ready.
iex> EctoSqlReadiness.probes([Store.Repo]) :ok