Skip to content

Commit

Permalink
Use new django celery beat scheduler (#3908)
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos authored and agjohnson committed Apr 5, 2018
1 parent d557fee commit 77b7c28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions readthedocs/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def INSTALLED_APPS(self): # noqa
'annoying',
'django_extensions',
'messages_extends',
'django_celery_beat',

# daniellindsleyrocksdahouse
'haystack',
Expand Down Expand Up @@ -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': {
Expand Down
1 change: 1 addition & 0 deletions requirements/pip.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77b7c28

Please sign in to comment.