From d30b184a2b6d0651056ebbb887e78c6e8430433d Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Tue, 7 May 2024 14:10:30 +0100 Subject: [PATCH] fix(docker): Run Task Processor entrypoint with PID 1 --- api/scripts/run-docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/scripts/run-docker.sh b/api/scripts/run-docker.sh index e1f603e53f13..7fa0ff47dda9 100755 --- a/api/scripts/run-docker.sh +++ b/api/scripts/run-docker.sh @@ -34,7 +34,7 @@ function run_task_processor() { if [[ -n "$ANALYTICS_DATABASE_URL" || -n "$DJANGO_DB_NAME_ANALYTICS" ]]; then python manage.py waitfordb --waitfor 30 --migrations --database analytics fi - RUN_BY_PROCESSOR=1 python manage.py runprocessor \ + RUN_BY_PROCESSOR=1 exec python manage.py runprocessor \ --sleepintervalms ${TASK_PROCESSOR_SLEEP_INTERVAL:-500} \ --graceperiodms ${TASK_PROCESSOR_GRACE_PERIOD_MS:-20000} \ --numthreads ${TASK_PROCESSOR_NUM_THREADS:-5} \