Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
1d2d59f8
Unverified
Commit
1d2d59f8
authored
4 years ago
by
Kyle McCormick
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #26328 from edx/kdmccormick/send-activation-email-2
fix: rename send_activation_email task (step 2/3)
parents
308c152c
21adbc4b
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/djangoapps/student/tasks.py
+5
-5
5 additions, 5 deletions
common/djangoapps/student/tasks.py
with
5 additions
and
5 deletions
common/djangoapps/student/tasks.py
+
5
−
5
View file @
1d2d59f8
...
...
@@ -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,
# s
et `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,
# s
top 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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment