Skip to content

Commit

Permalink
Modify backend entrypoint to wait redis (inmem and ondisk) (#7479)
Browse files Browse the repository at this point in the history
Currently CVAT is just waiting for the database to start the server
process and the worker processes, but if redis instances (for queue and
cache processing) are not running we will get a non-functional cvat.
This PR adds availability checking for redis_ondisk and redis_inmem
  • Loading branch information
azhavoro authored Feb 15, 2024
1 parent 11cec4c commit 6673bb1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion supervisord/server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ process_name=%(program_name)s-%(process_num)d

[fcgi-program:uvicorn]
socket=unix:///tmp/uvicorn.sock
command=python3 -m uvicorn --fd 0 --forwarded-allow-ips='*' cvat.asgi:application
command=%(ENV_HOME)s/wait_for_deps.sh
python3 -m uvicorn
--fd 0
--forwarded-allow-ips='*'
cvat.asgi:application
autorestart=true
environment=CVAT_EVENTS_LOCAL_DB_FILENAME="events_%(process_num)03d.db",CVAT_POSTGRES_APPLICATION_NAME="cvat:server"
numprocs=%(ENV_NUMPROCS)s
Expand Down

0 comments on commit 6673bb1

Please sign in to comment.