A library that provides basic status and tasks endpoint for Django Celery Beat.
Project description
Django Celery Beat Endpoint
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
- Qi Zhao(zhaoqi99@outlook.com)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_celery_beat_endpoint-0.1.3.tar.gz.
File metadata
- Download URL: django_celery_beat_endpoint-0.1.3.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bc4322cca1b41e66561692d8834d8bc93bc991b38a5776c8c6ca9e9c8c7ddd2
|
|
| MD5 |
3393ed8b6e9e9727a12f35299e4fa2ae
|
|
| BLAKE2b-256 |
a0b81421e08a81e8c7c683c49199db6ce317ff81fa0137ba4928012a15958d84
|
File details
Details for the file django_celery_beat_endpoint-0.1.3-py3-none-any.whl.
File metadata
- Download URL: django_celery_beat_endpoint-0.1.3-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cba8602171a99dd3f0a0d05614bf64cbb641c257a8fa2c523926f4973cc9659
|
|
| MD5 |
e4a506dbb92a58083132172251bced8e
|
|
| BLAKE2b-256 |
72a1be5947d7a8b8b3dba1d66b132bc4673191b523e249f50882494b6b9fb9c1
|