/persistent-celery-beat-scheduler

⏰ Celery Beat Scheduler that stores the scheduled tasks and runtime data in Redis.

Primary LanguagePythonApache License 2.0Apache-2.0

NOTICE: If you're reading this on GitHub.com please be aware this is a mirror of the primary remote located at https://code.richard.do/explore/projects. Please direct issues and pull requests there.

persistent-celery-beat-scheduler

PyPI Python Versions Build Status

Logo

Celery Beat Scheduler that stores the scheduled tasks and runtime data in Redis.

Installation

pip install persistent-celery-beat-scheduler

Configuration

In your celery configuration file you need to set the following.

persistent_scheduler_redis_url = 'redis://localhost:6379/'

# Optional: specify name for HSET key in Redis where scheduler data will be stored.
# Defaults to `celery-beat-scheduler` if not specified.
persistent_scheduler_key = 'myapp-celery-beat-scheduler'

Usage

celery -A my_project.app.celery beat -S persistent_scheduler.PersistentScheduler