chore: increased timeout for loading pipelines through API (#3977)

* increased timeout

* Added comment for users to increase timeout while using docker compose file

* changed the comment with appropriate msg

* changed the comment indent

* changed the indent again
This commit is contained in:
Mayank Jobanputra 2023-01-30 11:30:47 +01:00 committed by GitHub
parent 08ec059b14
commit fa17f0973e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,10 @@ services:
- DOCUMENTSTORE_PARAMS_HOST=elasticsearch
- PIPELINE_YAML_PATH=/opt/pipelines/pipelines.haystack-pipeline.yml
- TOKENIZERS_PARALLELISM=false
# Uncomment the following line to customise how much time (in seconds) a worker can spend serving a request
# before it times out. This should include the time required to cache the models and setup the pipelines.
# - GUNICORN_CMD_ARGS="--timeout=3000"
depends_on:
elasticsearch:
condition: service_healthy

View File

@ -22,4 +22,4 @@ ENV TIKA_LOG_PATH="/var/log/$SERVICE_NAME/"
EXPOSE 8000
USER $SERVICE_NAME
CMD ["gunicorn", "rest_api.application:app", "-b", "0.0.0.0", "-k", "uvicorn.workers.UvicornWorker", "--workers", "1", "--timeout", "180"]
CMD ["gunicorn", "rest_api.application:app", "-b", "0.0.0.0", "-k", "uvicorn.workers.UvicornWorker", "--workers", "1", "--timeout", "1000"]