Commit bbbaef30 by Xavier Antoviaque

edxapp-perm-fixes: Ensure edxapp/edxapp_worker are available in supervisor

Right after they are added for the first time, the commands are not available
until the groups are added.
parent ad160d40
......@@ -38,6 +38,15 @@
tags:
- deploy
- name: "edxapp | ensuring edxapp is activated in supervisor"
supervisorctl: >
name="edxapp"
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=present
when: celery_worker is not defined
tags:
- deploy
# write the supervisor script for celery workers
......@@ -50,6 +59,16 @@
tags:
- deploy
- name: edxapp | ensuring edxapp_worker is activated in supervisor
supervisorctl: >
name="edxapp_worker"
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=present
when: celery_worker is defined
tags:
- deploy
# Gather assets using rake if possible
- name: edxapp | gather {{ item }} static assets with rake
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment