redbeat

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

  • 所有者: sibson/redbeat
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

RedBeat

.. image:: https://img.shields.io/pypi/v/celery-redbeat.svg
:target: https://pypi.python.org/pypi/celery-redbeat
:alt: PyPI

.. image:: https://img.shields.io/circleci/project/github/sibson/redbeat.svg
:target: https://circleci.com/gh/sibson/redbeat/
:alt: Circle CI

.. image:: https://readthedocs.org/projects/redbeat/badge/?version=latest&style=flat
:target: https://redbeat.readthedocs.io/en/latest/
:alt: ReadTheDocs

RedBeat <https://github.com/sibson/redbeat>_ is a
Celery Beat Scheduler <http://celery.readthedocs.org/en/latest/userguide/periodic-tasks.html>_
that stores the scheduled tasks and runtime metadata in Redis <http://redis.io/>_.

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 <https://blog.heroku.com/redbeat-celery-beat-scheduler>_

Getting Started

Install with pip:

.. code-block:: console

pip install celery-redbeat

Configure RedBeat settings in your Celery configuration file:

.. code-block:: python

redbeat_redis_url = "redis://localhost:6379/1"

Then specify the scheduler when running Celery Beat:

.. code-block:: console

celery beat -S redbeat.RedBeatScheduler

RedBeat uses a distributed lock to prevent multiple instances running.
To disable this feature, set:

.. code-block:: python

redbeat_lock_key = None

More details available on Read the Docs <https://redbeat.readthedocs.io/en/latest/>_

Development

RedBeat is available on GitHub <https://github.com/sibson/redbeat>_

Once you have the source you can run the tests with the following commands::

pip install -r requirements.dev.txt
py.test tests

You can also quickly fire up a sample Beat instance with::

celery beat --config exampleconf

主要指标

概览
名称与所有者sibson/redbeat
主编程语言Python
编程语言Python (语言数: 2)
平台
许可证Apache License 2.0
所有者活动
创建于2015-08-20 05:10:07
推送于2025-06-07 01:48:18
最后一次提交2020-06-07 13:31:10
发布数28
最新版本名称v2.3.2 (发布于 2025-02-23 19:33:02)
第一版名称v0.8pre (发布于 2016-01-08 23:11:21)
用户参与
星数1k
关注者数20
派生数133
提交数588
已启用问题?
问题数138
打开的问题数25
拉请求数115
打开的拉请求数5
关闭的拉请求数34
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?