A Celery Beat Scheduler using Redis for persistent storage
Project description
RedBeat is a Celery Beat Scheduler that stores the scheduled tasks and runtime metadata in Redis.
Why RedBeat?
Dynamic live task creation and modification, without lengthy downtime
Externally manage tasks from any language with Redis bindings
Shared data store; Beat isn’t tied to a single drive or machine
Fast startup even with a large task count
Prevent accidentally running multiple Beat servers
For more background on the genesis of RedBeat see this blog post
Getting Started
Install with pip:
pip install celery-redbeat
Configure RedBeat settings in your Celery configuration file:
redbeat_redis_url = "redis://localhost:6379/1"
Then specify the scheduler when running Celery Beat:
celery beat -S redbeat.RedBeatScheduler
RedBeat uses a distributed lock to prevent multiple instances running. To disable this feature, set:
redbeat_lock_key = None
More details available on Read the Docs
Development
RedBeat is available on GitHub
Once you have the source you can run the tests with the following commands:
pip install -r requirements-dev.txt python -m unittest discover tests
You can also quickly fire up a sample Beat instance with:
celery beat --config exampleconf
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file celery-redbeat-2.2.0.tar.gz
.
File metadata
- Download URL: celery-redbeat-2.2.0.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71104729380d4eaefd91a9b7d270ba7851bfff9ad55a43ac8365acbb0c608b77 |
|
MD5 | b3fb33638162ce8b97ba701dd33acb5e |
|
BLAKE2b-256 | 350d63cf4db35c111554913199a54f32be3495526ff08189f9d79a879abcc6ad |