Skip to content

Commit 95041f9

Browse files
authored
Merge pull request #4 from galaxy-genome-annotation/timeout
add a GUNICORN_TIMEOUT
2 parents 5132a59 + b81e63d commit 95041f9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- name: Checkout
8-
uses: actions/checkout@v2
9-
- uses: actions/setup-python@v1
8+
uses: actions/checkout@v4
9+
- uses: actions/setup-python@v5
1010
with:
1111
python-version: 3.8
1212
- name: Install flake8

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ RUN chmod +x boot.sh
1818

1919
ENV FLASK_APP apolpi.py
2020
ENV TIMEOUT 30
21+
ENV GUNICORN_TIMEOUT 30
2122
EXPOSE 80
2223

2324
ENTRYPOINT ["/apolpi/boot.sh"]

boot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
exec gunicorn -b :80 --access-logfile - --error-logfile - apolpi:app
2+
exec gunicorn -b :80 --access-logfile - --error-logfile - --timeout ${GUNICORN_TIMEOUT:-30} apolpi:app

0 commit comments

Comments
 (0)