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.
This commit is contained in:
@@ -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),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user