Celery Tracker for Django
This django extension is intended for existing celery projects that want better monitoring of what’s going on in their queue.
Usage
To use this with your project, you need to:
Install django-celery-tracker:
$ pip install django-celery-tracker
Add django_celery_tracker to INSTALLED_APPS in your Django settings file:
INSTALLED_APPS = (
...
'django_celery_tracker',
)
Create the database tables by applying migrations:
$ python manage.py migrate django_celery_tracker
You will now have a record of all future celery tasks and their progress which can be queried like so:
$ python manage.py console
...
>>> from django_celery_tracker.models import CeleryTask
>>> CeleryTask.objects.all()
<QuerySet [<CeleryTask: id=3d889396-daa2-4209-9348-9ec71bfb1262, name=api.taskapp.celery.debug_task>]
Dashboard
Optionally, you can include a dashboard view that can only be accessed by admin users. To add the dashboard to your project, simply add the following to your urls.py:
urlpatterns = [
path("celery-tracker/", include("django_celery_tracker.urls")),
]
You can now visit http://site_url/celery-tracker to view the status of your tasks!
Disclaimer
The datastore for a celery message queue is usually in-memory and highly-optimized (eg redis or rabbitmq). This django extension creates a database entry for every celery task that is created. You may want to periodically delete older entries if storage is an obstacle.
Metadata
Release files for django-celery-tracker 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_celery_tracker-2.1.0.tar.gz | 18.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_celery_tracker-2.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 33.9 kB
Release files / django_celery_tracker-2.1.0.tar.gz
| Download URL | django_celery_tracker-2.1.0.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01f823f146ef3304601c301e5a08c01b4ddbdb9223c2414a38e950dbf0d22722
|
|
BLAKE2b-256 checksum How to use checksums |
b4253aa257ea9e41a8d2ac896917173118e30182ed9b8fbbb63105ff6853cb67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / django_celery_tracker-2.1.0-py2.py3-none-any.whl
| Download URL | django_celery_tracker-2.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
81451841b917b203f14c34ac68f933a49659fef431bfd2a2e6f20153621a181e
|
|
BLAKE2b-256 checksum How to use checksums |
c0803c232d055edee40e239fb6b0eaa7b354af96d0dfb7e84901646937673799
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|