From b71494aa64ce47f8a994292bbf2d053a600f18c5 Mon Sep 17 00:00:00 2001 From: Longze Chen Date: Thu, 12 Sep 2024 12:08:50 -0400 Subject: [PATCH] Fix task name for clear_expired_sessions in celery schedule --- website/settings/defaults.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/settings/defaults.py b/website/settings/defaults.py index b305fe0fd88..0467ef3c166 100644 --- a/website/settings/defaults.py +++ b/website/settings/defaults.py @@ -620,7 +620,7 @@ class CeleryConfig: 'kwargs': {'dry_run': False}, }, 'clear_expired_sessions': { - 'task': 'management.commands.clear_expired_sessions', + 'task': 'osf.management.commands.clear_expired_sessions', 'schedule': crontab(minute=0, hour=5), # Daily 12 a.m 'kwargs': {'dry_run': False}, },