File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ RUN echo 'Acquire::http::Pipeline-Depth 0;\nAcquire::http::No-Cache true;\nAcqui
77RUN apt-get clean && rm -rf /var/lib/apt/lists/* \
88 && apt-get update --fix-missing \
99 && apt-get install -y \
10+ libglib2.0-0 \
11+ libglib2.0-dev \
1012 libgl1-mesa-glx \
1113 poppler-utils \
1214 libmagic1 \
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ RUN apt-get update && \
1717 python3-pip \
1818 libgl1 \
1919 libglib2.0-0 \
20+ libglib2.0-dev \
2021 curl \
2122 gnupg2 \
2223 ca-certificates \
Original file line number Diff line number Diff line change @@ -53,7 +53,18 @@ echo "Your ENV settings loaded from .env.localhost file: "
5353printenv
5454
5555CELERY_BIN=" $( pwd) /.venv/bin/celery"
56- CELERY_PID=$( pgrep -f " $CELERY_BIN " )
56+ CELERY_PIDS=$( pgrep -f " $CELERY_BIN " )
57+
58+ if [ -n " $CELERY_PIDS " ]; then
59+ echo " Killing existing Celery processes from $CELERY_BIN with PIDs:"
60+ echo " $CELERY_PIDS "
61+ for PID in $CELERY_PIDS ; do
62+ kill " $PID " || echo " Failed to kill process with PID: $PID "
63+ done
64+ else
65+ echo " No running Celery process found."
66+ fi
67+
5768REDIS_PORT=6379 # will move it to .envs in near future
5869
5970if lsof -i :$REDIS_PORT | grep LISTEN > /dev/null; then
You can’t perform that action at this time.
0 commit comments