Skip to main content

Posts

Showing posts from June 5, 2018

Celery-beat and celery asynchronous running in daemon mode in Open-edX.

1. EDX production celery_beat configuration:                 cd /edx/app/supervisor/conf. available.d sudo nano  celery_beat_worker.conf Its content: ____________________________ [ program:celery_beat_worker ] directory=/edx/app/edxapp/edx- platform environment=DJANGO_SETTINGS_ MODULE=lms.envs.aws,SERVICE_ VARIANT="lms",PATH="/edx/app/       edxapp/venvs/edxapp/bin:/edx/ app/edxapp/edx-platform/bin:/ edx/app/edxapp/edx-platform/ node_modules/.bin:/usr/local/ sbin:/usr/local/bin:/usr/sbin: /usr/bin:/sbin:/bin" user=www-data stdout_logfile=/edx/var/log/ supervisor/%(program_name)s- stdout.log stderr_logfile=/edx/var/log/ supervisor/%(program_name)s- stderr.log autostart=true autorestart=true command=/edx/app/celery_beat_ script/celery_beat.sh ______________________________ ___________ sudo chown www-data:www-data  celery_beat_worker.conf sudo ln -s /edx/app/supervisor/conf. available.d/celery_beat_ worker.