Skip to main content

A library that provides basic status and tasks endpoint for Django Celery Beat.

Project description

Django Celery Beat Endpoint

Python version PyPI package PyPI download GitHub GitHub last commit (by committer)

A library that provides basic status and tasks endpoint for Django Celery Beat.

Inspired by vintasoftware/django-celerybeat-status

Requirements

Install

pip install django-celery-beat-endpoint
✨🍰✨

Or you can use pip install git+https://github.com/ZhaoQi99/django-celery-beat-endpoint.git install latest version.

Usage

Quick start

Just edit proj/celery.py, and replace Celery with AwareCelery

from django_celery_beat_endpoint.celery import AwareCelery
app = AwareCelery("proj")
# Or
from django_celery_beat_endpoint.celery import AwareCelery as Celery
app = Celery("proj")

Settings

You can easily configure lower case setting by referring Configuration and defaults.

Or you can use a CELERY_ prefix uppercase setting and loading configuration from the Django settings module.

  • beat_port / CELERY_BEAT_PORT - port for http server

    Default: 8005

  • http_server / CELERY_BEAT_HTTP_SERVER - HTTP server class

    Default: "django_celery_beat_endpoint.backends:HTTPServer"

API

  • /status
{
  "status": "OK"
}
  • /tasks
[
  {
    "name": "proj.tasks.add",
    "task": "",
    "args": "()",
    "last_run_at": "2024-06-18 20:00:00",
    "schedule": "<freq: 1.00 minute>",
    "kwargs": "{}",
    "is_due": true,
    "next_execution": "2024-06-18 20:00:10"
  }
]

Roadmap

  • Support more server backends, such as Tornado, Flask and FastAPI.

License

GNU General Public License v3.0

Author

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

django_celery_beat_endpoint-0.1.2.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django_celery_beat_endpoint-0.1.2.tar.gz.

File metadata

File hashes

Hashes for django_celery_beat_endpoint-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e9804465fe18f7a1c542d4a3f1a489849fa959bc4c9a34d75ce723989ff7c9d4
MD5 b420cd1c0815ea530740edcd4fd404e3
BLAKE2b-256 fe2cb7d5f5b9c0202f693ebea6701b18622741b0c8dcd724290f80f0e61ce1bc

See more details on using hashes here.

File details

Details for the file django_celery_beat_endpoint-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_celery_beat_endpoint-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a8d62fe33c12208d6e2d92789cc4825d737e8058c6714ec55562507dd7233762
MD5 1f9ec4b154668dc6ad9dbec72c63cb7b
BLAKE2b-256 58a20c5830c1e46fab71bc1a3344ffa4aece6d0e8d1049425f8a81a3d0c41984

See more details on using hashes here.

Supported by

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