Skip to content

Commit

Permalink
Move redis scheduler to cvat
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiltsov-max committed Nov 14, 2019
1 parent 4cd093e commit 0ae1162
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 0 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@ services:
- redis
restart: always

cvat_redis_scheduler:
container_name: cvat_redis_scheduler
image: cvat
restart: always
depends_on:
- cvat_redis
entrypoint: '/usr/local/bin/rqscheduler'
command: ['--host', 'redis']

cvat:
container_name: cvat
image: cvat
Expand Down
6 changes: 6 additions & 0 deletions supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ command=%(ENV_HOME)s/wait-for-it.sh redis:6379 -t 0 -- bash -ic \
environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock"
numprocs=1

[program:rqscheduler]
command=%(ENV_HOME)s/wait-for-it.sh redis:6379 -t 0 -- bash -ic \
"/usr/bin/python3 /usr/local/bin/rqscheduler --host redis -i 30"
environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock"
numprocs=1

[program:runserver]
; Here need to run a couple of commands to initialize DB and copy static files.
; We cannot initialize DB on build because the DB should be online. Also some
Expand Down

0 comments on commit 0ae1162

Please sign in to comment.