Update Pandora celery setting
This commit is contained in:
parent
cab95d15f3
commit
2b9d73c847
@ -77,7 +77,7 @@ RUN EOF
|
||||
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/local_settings.py local_settings.py
|
||||
chown -R 8080:8080 /srv/pandora
|
||||
chown -R pandora:pandora /srv/pandora
|
||||
|
||||
# Cleanup
|
||||
apk --no-cache del .deps
|
||||
|
@ -4,4 +4,4 @@ cd /srv/pandora/pandora
|
||||
export HOME /srv/pandora
|
||||
fdmove -c 2 1
|
||||
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
|
||||
|
@ -4,4 +4,4 @@ cd /srv/pandora/pandora
|
||||
export HOME /srv/pandora
|
||||
fdmove -c 2 1
|
||||
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
|
||||
|
@ -4,4 +4,4 @@ cd /srv/pandora/pandora
|
||||
export HOME /srv/pandora
|
||||
fdmove -c 2 1
|
||||
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
|
||||
|
@ -32,7 +32,7 @@ spoc-container exec pandora-rabbitmq -- rabbitmqctl set_permissions -p /pandora
|
||||
|
||||
# Configure Pandora
|
||||
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/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
|
||||
|
@ -9,7 +9,7 @@ DATABASES = {
|
||||
}
|
||||
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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user