use background task to avoid timeout

This commit is contained in:
Laura Abro
2025-04-29 11:09:29 -03:00
parent 6cf7e0db0e
commit f4b0fc4e2e
9 changed files with 198 additions and 107 deletions

View File

@ -20,7 +20,7 @@ RUN git config --global --add safe.directory /app
# Copy the rest of your application code into the container
COPY . .
ENV MIDDLE_SERVER_URL=https://builder247.api.koii.network
ENV MIDDLE_SERVER_URL=https://ik8kcow8ksw8gwgoo0ggosko.dev.koii.network
# Configure logging and output
ENV PYTHONUNBUFFERED=1
@ -40,9 +40,9 @@ CMD ["gunicorn", \
"--capture-output", \
"--enable-stdio-inheritance", \
"--logger-class=gunicorn.glogging.Logger", \
"--timeout", "600", \
"--graceful-timeout", "600", \
"--keep-alive", "5", \
"--timeout", "1800", \
"--graceful-timeout", "1800", \
"--keep-alive", "15", \
"-w", "1", \
"-b", "0.0.0.0:8080", \
"main:app"]