Skip to content
Snippets Groups Projects
Unverified Commit 1d2d59f8 authored by Kyle McCormick's avatar Kyle McCormick Committed by GitHub
Browse files

Merge pull request #26328 from edx/kdmccormick/send-activation-email-2

fix: rename send_activation_email task (step 2/3)
parents 308c152c 21adbc4b
No related merge requests found
......@@ -78,8 +78,8 @@ _NEW_TASK_NAME = 'common.djangoapps.student.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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment