Skip to content

Commit 9ab896a

Browse files
sur.la.routeauvipy
authored andcommitted
added settings option
added option to set scheduler through django settings.
1 parent 9298add commit 9ab896a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/includes/introduction.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,13 @@ Both the worker and beat services need to be running at the same time.
207207
$ celery -A [project-name] beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
208208

209209

210-
**OR** you can use the -S (scheduler flag), for more options see ``celery beat --help ``)::
210+
**OR** you can use the -S (scheduler flag), for more options see ``celery beat --help``)::
211211

212212
$ celery -A [project-name] beat -l info -S django
213+
214+
**OR** you can set the scheduler through Django's settings::
215+
216+
CELERY_BEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler'
213217

214218

215219
Also, as an alternative, you can run the two steps above (worker and beat services)

0 commit comments

Comments
 (0)