From 517c4af90c7835e0d2a8c0fedce464eb3050d6d4 Mon Sep 17 00:00:00 2001 From: Zainab Amir Date: Wed, 8 Sep 2021 17:52:03 +0500 Subject: [PATCH] fix: rename send_activation_email task (#28678) --- openedx/core/djangoapps/user_authn/tasks.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openedx/core/djangoapps/user_authn/tasks.py b/openedx/core/djangoapps/user_authn/tasks.py index 6a3500d46d..2392d3b3cb 100644 --- a/openedx/core/djangoapps/user_authn/tasks.py +++ b/openedx/core/djangoapps/user_authn/tasks.py @@ -73,8 +73,8 @@ _NEW_TASK_NAME = 'openedx.core.djangoapps.user_authn.tasks.send_activation_email # Register task under both its old and new names, -# but expose only the old-named task for invocation. -# -> Next step: Once we deploy and teach Celery workers the new name, -# set `send_activation_email` to the new-named task. -send_activation_email = shared_task(bind=True, name=_OLD_TASK_NAME)(_send_activation_email) -shared_task(bind=True, name=_NEW_TASK_NAME)(_send_activation_email) +# but expose only the new-named task for invocation. +# -> Next step: Once we deploy and stop using the old task name, +# stop registering the task under the old name. +shared_task(bind=True, name=_OLD_TASK_NAME)(_send_activation_email) +send_activation_email = shared_task(bind=True, name=_NEW_TASK_NAME)(_send_activation_email)