Skip to content

Commit

Permalink
fix: gunicorn timing out because of slow screen spawning
Browse files Browse the repository at this point in the history
  • Loading branch information
Yimura committed Apr 3, 2024
1 parent c272675 commit 7567931
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ ARG CRACKERJACK_REPO=https://github.com/Yimura/crackerjack.git
ENV ADDRESS 0.0.0.0
ENV PORT 8080

ENV TIMEOUT 120

EXPOSE $PORT

COPY --from=hashcat-builder $HASHCAT_INSTALL_DIR /
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ python3 -m flask db upgrade
python3 -m flask crontab add

# by using exec the bash script will exit and continue running the python program.
exec python3 -m gunicorn --workers 3 --bind $ADDRESS:$PORT -m 007 wsgi:app
exec python3 -m gunicorn --workers 3 --bind $ADDRESS:$PORT --timeout $TIMEOUT -m 007 wsgi:app
2 changes: 2 additions & 0 deletions nvidia/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ ARG HASHCAT_INSTALL_DIR=/tmp/hashcat_install
ENV ADDRESS 0.0.0.0
ENV PORT 8080

ENV TIMEOUT 120

EXPOSE $PORT

COPY --from=hashcat-builder $HASHCAT_INSTALL_DIR /
Expand Down

0 comments on commit 7567931

Please sign in to comment.