This commit is contained in:
p23 2024-12-22 13:00:25 +00:00
parent 4a9ebf55ce
commit c7e3f0ac7b
4 changed files with 6 additions and 3 deletions

3
.gitignore vendored
View File

@ -4,4 +4,5 @@ session.json
traceback.json traceback.json
test.py test.py
tmp tmp
tmp/* tmp/*
testfiles/*

View File

@ -12,7 +12,7 @@ RUN apt-get update && \
COPY ./requirements.txt /app/requirements.txt COPY ./requirements.txt /app/requirements.txt
COPY ./ffmpeg_python-0.2.0-py3-none-any.whl /app/ffmpeg_python-0.2.0-py3-none-any.whl COPY ./ffmpeg_python-0.2.0-py3-none-any.whl /app/ffmpeg_python-0.2.0-py3-none-any.whl
RUN pip3 install -r /app/requirements.txt
RUN pip3 install ffmpeg_python-0.2.0-py3-none-any.whl RUN pip3 install ffmpeg_python-0.2.0-py3-none-any.whl
RUN pip3 install -r /app/requirements.txt
EXPOSE 50051 EXPOSE 50051

View File

@ -16,6 +16,7 @@ grpclog = logging.getLogger("grpc")
grpclog.setLevel(level=logging.INFO) grpclog.setLevel(level=logging.INFO)
# call account info / login # call account info / login
# may race condition
cache_accinfo = TTLCache(maxsize=1, ttl=GRPC_ACCINFO_CACHE) cache_accinfo = TTLCache(maxsize=1, ttl=GRPC_ACCINFO_CACHE)
@cached(cache_accinfo) @cached(cache_accinfo)
def call_IG_account_info(): def call_IG_account_info():

View File

@ -1,3 +1,4 @@
moviepy==1.0.3
instagrapi instagrapi
sqlalchemy sqlalchemy
sqlalchemy_utils sqlalchemy_utils