Skip to content

Commit

Permalink
Fix typo in settings for celery beat scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-brisbois authored and auvipy committed Nov 8, 2022
1 parent 9d7d7ba commit dda0b88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django_celery_beat/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class PeriodicTaskAdmin(admin.ModelAdmin):

def changelist_view(self, request, extra_context=None):
extra_context = extra_context or {}
scheduler = getattr(settings, 'CELERYBEAT_SCHEDULER', None)
scheduler = getattr(settings, 'CELERY_BEAT_SCHEDULER', None)
extra_context['wrong_scheduler'] = not is_database_scheduler(scheduler)
return super().changelist_view(
request, extra_context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ul class="messagelist">
<li class="warning">
Periodic tasks won't be dispatched unless you set the
<code>CELERYBEAT_SCHEDULER</code> setting to
<code>CELERY_BEAT_SCHEDULER</code> setting to
<code>djcelery.schedulers.DatabaseScheduler</code>,
or specify it using the <code>-S</code> option to celerybeat
</li>
Expand Down
2 changes: 1 addition & 1 deletion docs/includes/introduction.txt
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Both the worker and beat services need to be running at the same time.

.. code-block:: sh

CELERYBEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler'
CELERY_BEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler'



Expand Down

0 comments on commit dda0b88

Please sign in to comment.