mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-12 23:37:36 +00:00
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:
parent
08ec059b14
commit
fa17f0973e
@ -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
|
||||
|
||||
@ -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"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user