diff --git a/readthedocs/settings/base.py b/readthedocs/settings/base.py index e0c1b933d84..8057901534f 100644 --- a/readthedocs/settings/base.py +++ b/readthedocs/settings/base.py @@ -84,6 +84,7 @@ def INSTALLED_APPS(self): # noqa 'annoying', 'django_extensions', 'messages_extends', + 'django_celery_beat', # daniellindsleyrocksdahouse 'haystack', @@ -244,6 +245,7 @@ def USE_PROMOS(self): # noqa CELERY_CREATE_MISSING_QUEUES = True CELERY_DEFAULT_QUEUE = 'celery' + CELERYBEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler' CELERYBEAT_SCHEDULE = { # Ran every hour on minute 30 'hourly-remove-orphan-symlinks': { diff --git a/requirements/pip.txt b/requirements/pip.txt index 4a677700e96..a6dc76d9588 100644 --- a/requirements/pip.txt +++ b/requirements/pip.txt @@ -38,6 +38,7 @@ defusedxml==0.5.0 # Basic tools redis==2.10.6 celery==4.1.0 +django-celery-beat==1.1.1 # django-allauth 0.33.0 dropped support for Django 1.9 # https://django-allauth.readthedocs.io/en/latest/release-notes.html#backwards-incompatible-changes