Skip to main content

A Celery Beat Scheduler using Redis for persistent storage

Project description

Python Versions PyPI Package Actions Status ReadTheDocs Code style: black

RedBeat is a Celery Beat Scheduler that stores the scheduled tasks and runtime metadata in Redis.

Why RedBeat?

  1. Dynamic live task creation and modification, without lengthy downtime

  2. Externally manage tasks from any language with Redis bindings

  3. Shared data store; Beat isn’t tied to a single drive or machine

  4. Fast startup even with a large task count

  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

celery-redbeat-2.1.1.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

celery_redbeat-2.1.1-py2.py3-none-any.whl (14.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file celery-redbeat-2.1.1.tar.gz.

File metadata

  • Download URL: celery-redbeat-2.1.1.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.0

File hashes

Hashes for celery-redbeat-2.1.1.tar.gz
Algorithm Hash digest
SHA256 7fa582c0e1624f94c11536f00734d11011b31df520ffa3531e9e2aebdc8639fd
MD5 395d4ebbfae66ecb966cf003670a4337
BLAKE2b-256 9e1b4ff7e2fbb134c86f44c94e0a718ab2e349a1e2121e925b1af1370956f3bd

See more details on using hashes here.

File details

Details for the file celery_redbeat-2.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for celery_redbeat-2.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2bd5932fb8830bcc7fb63be506c64c80bcb3da8bf6e48ac8a34df4212966fcfa
MD5 4221ca38ce376e6f155fc7baf819ccf4
BLAKE2b-256 0c927f489b7f4a86acdb36668c42de412d0fcc424e8b0f104fc6ba7ed46d2c49

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page