From ed552933ab934253fe0e3704390bde2417c851f0 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Tue, 17 Apr 2018 10:54:58 -0500 Subject: [PATCH] Remove django-celery-beat and use the default scheduler There are some issues with timezone for the `DatabaseScheduler`, so we fallback to the default one (celery.beat.PersistentScheduler) which is simpler --doesn't allow us to change the scheduled task from the admin, but we don't need that. In case we need this again, we can come back when those issues are already fixed and revert this commit. --- readthedocs/settings/base.py | 2 -- requirements/pip.txt | 1 - 2 files changed, 3 deletions(-) diff --git a/readthedocs/settings/base.py b/readthedocs/settings/base.py index 8057901534f..e0c1b933d84 100644 --- a/readthedocs/settings/base.py +++ b/readthedocs/settings/base.py @@ -84,7 +84,6 @@ def INSTALLED_APPS(self): # noqa 'annoying', 'django_extensions', 'messages_extends', - 'django_celery_beat', # daniellindsleyrocksdahouse 'haystack', @@ -245,7 +244,6 @@ 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 a6dc76d9588..4a677700e96 100644 --- a/requirements/pip.txt +++ b/requirements/pip.txt @@ -38,7 +38,6 @@ 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