From bc00e644095006ac8ba8a699d7a5ba1c906c781d Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Fri, 15 Oct 2021 13:55:12 -0400 Subject: [PATCH] fix: Decorate celery task to set code owner attribute. See https://edx.readthedocs.io/projects/edx-django-utils/en/latest/monitoring/how_tos/add_code_owner_custom_attribute_to_an_ida.html\#handling-celery-tasks fo more details. --- openedx/core/djangoapps/user_authn/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openedx/core/djangoapps/user_authn/tasks.py b/openedx/core/djangoapps/user_authn/tasks.py index 4e2f7a8b74..7fa4c218ec 100644 --- a/openedx/core/djangoapps/user_authn/tasks.py +++ b/openedx/core/djangoapps/user_authn/tasks.py @@ -44,6 +44,7 @@ def get_pwned_properties(pwned_response, password): @shared_task +@set_code_owner_attribute def check_pwned_password_and_send_track_event(user_id, password, internal_user=False): """ Check the Pwned Databases and send its event to Segment