From 883f213b034f9ba6f96ac1fa4b89f6868119dd04 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 24 Jan 2022 21:51:57 +0100 Subject: [PATCH] lifecycle: wait for db in worker Signed-off-by: Jens Langhammer --- lifecycle/ak | 1 + 1 file changed, 1 insertion(+) diff --git a/lifecycle/ak b/lifecycle/ak index 3f86c670c..75b93118c 100755 --- a/lifecycle/ak +++ b/lifecycle/ak @@ -69,6 +69,7 @@ if [[ "$1" == "server" ]]; then python -m lifecycle.migrate /authentik-proxy elif [[ "$1" == "worker" ]]; then + wait_for_db echo "worker" > $MODE_FILE check_if_root "celery -A authentik.root.celery worker -Ofair --max-tasks-per-child=1 --autoscale 3,1 -E -B -s /tmp/celerybeat-schedule -Q authentik,authentik_scheduled,authentik_events" elif [[ "$1" == "flower" ]]; then