Skip to content

Commit

Permalink
fix(docker): Run Task Processor entrypoint with PID 1 (#3889)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 authored May 8, 2024
1 parent d7db267 commit 79f4ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/scripts/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand Down

0 comments on commit 79f4ef7

Please sign in to comment.