Startup for the db_api service raises several peewee.OperationalErrors and psycopg2.OperationalErrors. This is currently handled in the docker_compose.yml file with restart: on-failure, but should be handled inside of the scripts itself with timed restart attempts.
I handled this in the docker-compose.yml file rather than in the code itself. The docker-compose file performs a health check on the database image before running the db_api container.
Startup for the
db_api
service raises severalpeewee.OperationalError
s andpsycopg2.OperationalError
s. This is currently handled in thedocker_compose.yml
file withrestart: on-failure
, but should be handled inside of the scripts itself with timed restart attempts.