[program:discern_celery]

command={{ discern_venv_bin }}/python {{ discern_code_dir }}/manage.py celeryd --loglevel=info --settings=discern.aws --pythonpath={{ discern_code_dir }} -B --autoscale=4,1 --schedule={{ discern_data_dir }}/celerybeat-schedule

user={{ common_web_user }}
directory={{ discern_code_dir }}

environment=DJANGO_SETTINGS_MODULE=discern.aws,SERVICE_VARIANT=discern

stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)-stderr.log

killasgroup=true
stopasgroup=true
