cd /edx/app/notifier # may be different on stage
source notifier_env
source virtualenvs/notifier/bin/activate
cd src/
# make sure to apply migrations if they haven't been applied yet
sudo -E /edx/app/notifier/virtualenvs/notifier/bin/python manage.py migrate --fake-initial
# restart notifier workers and scheduler
/edx/bin/supervisorctl restart notifier-celery-workers
/edx/bin/supervisorctl restart notifier-scheduler
# run the forums_digest management command to see that an email will be properly rendered and sent
# use today + 1 day as the datetime, pick a user who should get a digest (requires manual clicking in app)
sudo -E /edx/app/notifier/virtualenvs/notifier/bin/python manage.py forums_digest --to_datetime=2017-10-24 --users=8
# verify no errors in log
tail -n 100 /edx/var/log/supervisor/notifier-celery-workers-stderr.log |