django-celery-beat stores Celery periodic task schedules in the database so you can create, edit, and disable timed jobs from Django Admin.
Overview
django-celery-beat is a Django extension that moves Celery Beat’s periodic task schedule into the database instead of static configuration files alone. Periodic tasks link to interval or crontab schedule models and can be managed through the Django admin interface.
Interval schedules run tasks every N seconds, minutes, hours, days, or microseconds. Crontab schedules express minute, hour, day-of-week, day-of-month, and month-of-year fields with an associated timezone. A PeriodicTasks index model signals the beat service to reload when schedules change.
Tasks can reference Celery task names, optional JSON-serialized arguments and keyword arguments, queues, and expiry. An enabled flag allows temporary disable without deletion. Operators run a Celery worker and a beat process using the django-celery-beat DatabaseScheduler, or combine worker and beat in development.
Installation adds django_celery_beat to INSTALLED_APPS, runs migrations, and follows Celery’s documentation for wiring the scheduler. Changing Django’s TIME_ZONE may require resetting last run times on existing periodic tasks.
Key features
- Database-backed periodic tasks
- Django Admin schedule management
- Interval and crontab schedule models
- Schedule reload signaling for beat
- JSON task args and kwargs
- Per-task enable and disable flag
- DatabaseScheduler for Celery Beat
- Timezone-aware crontab entries
Use cases
- Editable cron jobs in Django projects
- Operations-managed task schedules
- Interval polling without code deploys
- Central schedule store for Celery workers