Open etkeys opened 1 day ago
It appears that systemd services are started before the postgres docker container is restarted. The worker service and web app service should both use systemd auto restart and restart delay. This way if the database is slow to start or goes down, the services will eventually retry connections and automatically become available again.
Current behavior
When the host machine reboots, the videodl_worker service is started automatically but fails and becomes inactivated due to database connection error.
Desired behavior
When the host machine reboots, the videodl_worker service should not fail immediately when automatically started due to database connection failure
Notes