diff --git a/.gitignore b/.gitignore index 5541dd4..2938dec 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ session.json traceback.json test.py tmp -tmp/* \ No newline at end of file +tmp/* +testfiles/* \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index ef24ede..a8d1990 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN apt-get update && \ 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 -RUN pip3 install -r /app/requirements.txt RUN pip3 install ffmpeg_python-0.2.0-py3-none-any.whl +RUN pip3 install -r /app/requirements.txt -EXPOSE 50051 +EXPOSE 50051 \ No newline at end of file diff --git a/grpcServer/grpcServer.py b/grpcServer/grpcServer.py index 825c44e..db5e318 100644 --- a/grpcServer/grpcServer.py +++ b/grpcServer/grpcServer.py @@ -16,6 +16,7 @@ grpclog = logging.getLogger("grpc") grpclog.setLevel(level=logging.INFO) # call account info / login +# may race condition cache_accinfo = TTLCache(maxsize=1, ttl=GRPC_ACCINFO_CACHE) @cached(cache_accinfo) def call_IG_account_info(): diff --git a/requirements.txt b/requirements.txt index 20d495d..82f635b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +moviepy==1.0.3 instagrapi sqlalchemy sqlalchemy_utils