6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-09-30 05:09:02 +00:00
tutor/tutor
Régis Behmo 40a76330f6 Fix unsent activation emails and other asynchronous tasks
Half of the tasks from edx.lms.core.default celery queue were being
processed by the CMS worker. Unfortunately, this CMS worker crashes on
some of those tasks. For instance, activation emails complain of a
missing "django_markup" template tag library because "xss_utils" is not
part of the installed app in the CMS.

The problem is that we need this edx.lms.core.default queue to be part
of the CELERY_QUEUES in the cms in order to send tasks from the CMS to
the LMS. The trick to resolve this situation is to ask the CMS celery
worker to not process the tasks from this queue.

To debug this issue, run in the LMS:

    from student.tasks import send_activation_email
    send_activation_email("{}")

Then watch the logs of the lms and cms workers. If the CMS workers picks
up this task (50% of the time prior to this change) then we have an
issue.

See:
https://discuss.overhang.io/t/reset-password-email-sent-but-activation-email-dont/690
2020-06-22 12:11:15 +02:00
..
commands v10.0.0 Upgrade to Juniper (2020-06-15) 2020-06-15 10:19:07 +02:00
templates Fix unsent activation emails and other asynchronous tasks 2020-06-22 12:11:15 +02:00
__about__.py v10.0.5 (2020-06-21) 2020-06-21 13:46:19 +02:00
__init__.py Tutor v3 complete rewrite 2019-02-09 20:30:01 +01:00
config.py v10.0.0 Upgrade to Juniper (2020-06-15) 2020-06-15 10:19:07 +02:00
env.py Upgrade tutor requirements 2020-06-17 12:11:54 +02:00
exceptions.py Tutor v3 complete rewrite 2019-02-09 20:30:01 +01:00
fmt.py env.py refactoring 2020-01-16 15:07:35 +01:00
images.py Better dev environment 2019-10-24 20:03:36 +02:00
interactive.py v10.0.0 Upgrade to Juniper (2020-06-15) 2020-06-15 10:19:07 +02:00
plugins.py env.py refactoring 2020-01-16 15:07:35 +01:00
scripts.py It is no longer necessary to define DJANGO_SETTINGS_MODULE in jobs 2020-06-17 13:24:48 +02:00
serialize.py Improve job running in local and k8s 2020-04-25 23:12:42 +02:00
utils.py v10.0.0 Upgrade to Juniper (2020-06-15) 2020-06-15 10:19:07 +02:00