30 строки
957 B
Plaintext
30 строки
957 B
Plaintext
[supervisord]
|
|
logfile=/data/olympia/logs/supervisord-celery.log
|
|
logfile_maxbytes=1048576
|
|
logfile_backups=1
|
|
user=olympia
|
|
|
|
[program:olympia-worker]
|
|
# Local env setup for celery. This is similar to prod, but with only two workers
|
|
# Prod config for reference:
|
|
# https://github.com/mozilla-services/cloudops-deployment/blob/master/projects/amo/puppet/modules/olympia/manifests/celery.pp
|
|
command=watchmedo auto-restart --directory /data/olympia/src --pattern '*.py' --recursive -- celery -A olympia.amo.celery:app worker -E -c 2 --loglevel=INFO
|
|
directory=/data/olympia
|
|
stopasgroup=true
|
|
autostart=true
|
|
redirect_stderr=true
|
|
stdout_logfile=logs/docker-celery.log
|
|
stdout_logfile_maxbytes=10MB
|
|
stdout_logfile_backups=1
|
|
stopsignal=KILL
|
|
environment=DJANGO_SETTINGS_MODULE='settings'
|
|
|
|
|
|
# The following sections enable supervisorctl.
|
|
|
|
[inet_http_server]
|
|
port=9001
|
|
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|