Skip to content

Commit 31b1a07

Browse files
authored
Merge pull request #97 from CatchTheTornado/hotfix/2025-01-19/duplicated-unify-and-missing-libglib20
2 parents c26bd2f + 2e0890e commit 31b1a07

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
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

text_extract_api/files/file_formats/file_format.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,6 @@ def convertible_to() -> Dict[Type["FileFormat"], Callable[[Type["FileFormat"]],
178178
"""
179179
return {}
180180

181-
def unify(self) -> Type["FileFormat"]:
182-
"""
183-
Converts the file to a universal type for that format (e.g., JPEG from png, bmp, tiff, etc.).
184-
Default implementation returns a new instance of the current format.
185-
186-
:return: Unified format as a new self instance.
187-
"""
188-
return self
189-
190181
@classmethod
191182
def default_iterator_file_format(cls) -> Type["FileFormat"]:
192183
if not cls.is_pageable():

0 commit comments

Comments
 (0)