Skip to content

Commit

Permalink
feat: implement elasticache (#2234)
Browse files Browse the repository at this point in the history
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
  • Loading branch information
StanGirard authored Feb 21, 2024
1 parent 3c2d83b commit 19c1194
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ OPENAI_API_KEY=CHANGE_ME
# OLLAMA_API_BASE_URL=http://host.docker.internal:11434 # Uncomment to activate ollama. This is the local url for the ollama api




# This file is used to configure the Quivr stack. It is used by the `docker-compose.yml` file to configure the stack.

########
Expand Down
4 changes: 2 additions & 2 deletions backend/celery_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
elif CELERY_BROKER_URL.startswith("redis"):
celery = Celery(
__name__,
broker=CELERY_BROKER_URL,
backend=CELERY_BROKER_URL,
broker=f"{CELERY_BROKER_URL}?ssl_cert_reqs=none",
backend=f"{CELERY_BROKER_URL}?ssl_cert_reqs=none",
task_concurrency=4,
worker_prefetch_multiplier=2,
task_serializer="json",
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
- 5678:5678 # debug port

redis:
image: redis:latest@sha256:a7cee7c8178ff9b5297cb109e6240f5072cdaaafd775ce6b586c3c704b06458e
image: redis:latest
container_name: redis
restart: always
ports:
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ services:
command:
- "uvicorn"
- "main:app"
- "--reload"
- "--host"
- "0.0.0.0"
- "--port"
Expand Down

0 comments on commit 19c1194

Please sign in to comment.