Skip to content

Commit 2e0890e

Browse files
committed
#HOTFIX - missing libglib2.0 in dockers + missing killing existing celery pids after re-run
1 parent a5626f4 commit 2e0890e

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

dev.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ RUN echo 'Acquire::http::Pipeline-Depth 0;\nAcquire::http::No-Cache true;\nAcqui
77
RUN 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 \

dev.gpu.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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 \

run.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,18 @@ echo "Your ENV settings loaded from .env.localhost file: "
5353
printenv
5454

5555
CELERY_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+
5768
REDIS_PORT=6379 # will move it to .envs in near future
5869

5970
if lsof -i :$REDIS_PORT | grep LISTEN >/dev/null; then

0 commit comments

Comments
 (0)