Update Pandora celery setting

This commit is contained in:
Disassembler 2020-03-22 14:54:16 +01:00
parent cab95d15f3
commit 2b9d73c847
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
6 changed files with 6 additions and 6 deletions

View File

@ -77,7 +77,7 @@ RUN EOF
ln -s /srv/pandora/conf/config.jsonc config.jsonc ln -s /srv/pandora/conf/config.jsonc config.jsonc
ln -s /srv/pandora/conf/gunicorn_config.py gunicorn_config.py ln -s /srv/pandora/conf/gunicorn_config.py gunicorn_config.py
ln -s /srv/pandora/conf/local_settings.py local_settings.py ln -s /srv/pandora/conf/local_settings.py local_settings.py
chown -R 8080:8080 /srv/pandora chown -R pandora:pandora /srv/pandora
# Cleanup # Cleanup
apk --no-cache del .deps apk --no-cache del .deps

View File

@ -4,4 +4,4 @@ cd /srv/pandora/pandora
export HOME /srv/pandora export HOME /srv/pandora
fdmove -c 2 1 fdmove -c 2 1
s6-setuidgid pandora s6-setuidgid pandora
./manage.py celerybeat -s /srv/pandora/data/celerybeat-schedule --pidfile pandora-cron.pid -l INFO /usr/bin/celery -A app beat -s /srv/pandora/data/celerybeat-schedule -l INFO

View File

@ -4,4 +4,4 @@ cd /srv/pandora/pandora
export HOME /srv/pandora export HOME /srv/pandora
fdmove -c 2 1 fdmove -c 2 1
s6-setuidgid pandora s6-setuidgid pandora
./manage.py celery worker -Q encoding -n pandora-encoding --pidfile pandora-encoding.pid --maxtasksperchild 500 -l INFO /usr/bin/celery -A app worker -Q encoding -n pandora-encoding --maxtasksperchild 500 -l INFO

View File

@ -4,4 +4,4 @@ cd /srv/pandora/pandora
export HOME /srv/pandora export HOME /srv/pandora
fdmove -c 2 1 fdmove -c 2 1
s6-setuidgid pandora s6-setuidgid pandora
./manage.py celery worker -Q default,celery -n pandora-default --pidfile pandora-tasks.pid --maxtasksperchild 1000 -l INFO /usr/bin/celery -A app worker -Q default,celery -n pandora-default --maxtasksperchild 1000 -l INFO

View File

@ -32,7 +32,7 @@ spoc-container exec pandora-rabbitmq -- rabbitmqctl set_permissions -p /pandora
# Configure Pandora # Configure Pandora
install -o 108080 -g 108080 -m 750 -d ${PANDORA_CONF} install -o 108080 -g 108080 -m 750 -d ${PANDORA_CONF}
install -o 108080 -g 108080 -m 750 -d ${PANDORA_DATA} install -o 108080 -g 108080 -m 755 -d ${PANDORA_DATA}
install -o 108080 -g 108080 -m 640 pandora_conf/config.jsonc ${PANDORA_CONF}/config.jsonc install -o 108080 -g 108080 -m 640 pandora_conf/config.jsonc ${PANDORA_CONF}/config.jsonc
install -o 108080 -g 108080 -m 640 pandora_conf/gunicorn_config.py ${PANDORA_CONF}/gunicorn_config.py install -o 108080 -g 108080 -m 640 pandora_conf/gunicorn_config.py ${PANDORA_CONF}/gunicorn_config.py
envsubst <pandora_conf/local_settings.py | install -o 108080 -g 108080 -m 640 /dev/stdin ${PANDORA_CONF}/local_settings.py envsubst <pandora_conf/local_settings.py | install -o 108080 -g 108080 -m 640 /dev/stdin ${PANDORA_CONF}/local_settings.py

View File

@ -9,7 +9,7 @@ DATABASES = {
} }
DB_GIN_TRGM = True DB_GIN_TRGM = True
BROKER_URL = 'amqp://pandora:${PANDORA_RABBIT_PWD}@pandora-rabbitmq:5672//pandora' CELERY_BROKER_URL = 'amqp://pandora:${PANDORA_RABBIT_PWD}@pandora-rabbitmq:5672//pandora'
EMAIL_HOST = 'host' EMAIL_HOST = 'host'