Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change kp refresh function name and pin redis version #456

Merged
merged 2 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ services:
environment:
REDIS_HOST: ${REDIS_HOST:-redis}
redis:
image: redis/redis-stack-server:latest
container_name: redis
build:
context: redis
Expand Down
2 changes: 1 addition & 1 deletion redis/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM redis
FROM redis/redis-stack-server:7.2.0-v11
COPY redis.conf /usr/local/etc/redis/redis.conf
CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
2 changes: 1 addition & 1 deletion requirements-lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ python-dotenv==1.0.1
python-multipart==0.0.9
PyYAML==6.0.1
reasoner-pydantic==5.0.4
redis==4.3.4
redis==5.0.6
rich==13.7.1
setuptools==70.0.0
shellingham==1.5.4
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pyyaml==6.0.1
uvicorn[standard]==0.29.0
fastapi==0.111.0
reasoner-pydantic==5.0.4
redis==4.3.4
redis==5.0.6
orjson==3.10.3
gunicorn==22.0.0
kp-registry==4.0.1
Expand Down
4 changes: 2 additions & 2 deletions strider/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
title="Strider",
description=DESCRIPTION,
docs_url=None,
version="4.7.2",
version="4.7.3",
terms_of_service=(
"http://robokop.renci.org:7055/tos"
"?service_long=Strider"
Expand Down Expand Up @@ -186,7 +186,7 @@ async def catch_exceptions_middleware(request: Request, call_next):


@APP.on_event("startup")
async def get_kp_registry():
async def refresh_kp_registry():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we change the name of this function, what are we calling now in line 682?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are now correctly calling line 48

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay, I missed that import. Thanks.

if not settings.offline_mode:
await reload_kp_registry()

Expand Down
Loading