etkeys / videodl

A simple web app for family to download videos from the web (think vlogs for offline viewing).
MIT License
0 stars 0 forks source link

Worker serivce fails to start after machine reboot #10

Open etkeys opened 1 day ago

etkeys commented 1 day ago

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

etkeys commented 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.