From d8ea16f6ecfe8a9dc08d629f61d92ef5b56e13a5 Mon Sep 17 00:00:00 2001 From: Muhammad Arslan Date: Wed, 30 Jul 2025 00:46:59 +0500 Subject: [PATCH] fix: refresh-saml-metadata beat task path fixed (#37080) This PR fixes the task path in the Celery beat settings for the refresh-saml-metadata scheduled task. We had previously added the fetch_saml_metadata task to the Celery beat schedule to run periodically (default: every 24 hours). However, due to a typo in the task path, Celery workers were throwing errors. This fix corrects the task path so the schedule can run as intended. --- lms/envs/production.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/envs/production.py b/lms/envs/production.py index 2587e38836..f8b0b2f617 100644 --- a/lms/envs/production.py +++ b/lms/envs/production.py @@ -411,7 +411,7 @@ if FEATURES.get('ENABLE_THIRD_PARTY_AUTH'): # If we didn't override the value in YAML, OR we overrode it to a truthy value, # then update CELERYBEAT_SCHEDULE. CELERYBEAT_SCHEDULE['refresh-saml-metadata'] = { - 'task': 'common.djangoapps.third_party_auth.fetch_saml_metadata', + 'task': 'common.djangoapps.third_party_auth.tasks.fetch_saml_metadata', 'schedule': datetime.timedelta(hours=hours), }