Celery tracker for Django.
Project description
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 celery_tracker to INSTALLED_APPS in your Django settings file:
INSTALLED_APPS = (
...
'celery_tracker',
)
Create the database tables by applying migrations:
$ python manage.py migrate celery_tracker
You will now have a record of all _future_ celery tasks and their progress which can queried like so:
$ python manage.py shell
...
>>> from celery_tracker.models import CeleryTask
>>> CeleryTask.objects.all()
<QuerySet [<CeleryTask: id=3d889396-daa2-4209-9348-9ec71bfb1262, name=api.taskapp.celery.debug_task>]
Release
switch to master branch:
Change package version in celery_tracker/__init__.py according to release changes (major|minor|patch).
Update CHANGELOG.md: - Rename [Unreleased] section to reflect new release version and release date, same format as for all previous releases - Create new [Unreleased] section on top of file, as it was previously - On the bottom of CHANGELOG.md file, create comparison reference for current release changes:
# was
[Unreleased]: https://github.com/chris-allen/django-celery-tracker/compare/v0.3.0...HEAD
[0.3.0]: https://github.com/chris-allen/django-celery-tracker/compare/v0.2.0...v0.3.0
# became
# - "Unreleased" renamed to commit version
# - new "Unreleased" created, comparing last "0.4.0" commit with "HEAD"
[Unreleased]: https://github.com/chris-allen/django-celery-tracker/compare/v0.4.0...HEAD
[0.4.0]: https://github.com/chris-allen/django-celery-tracker/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/chris-allen/django-celery-tracker/compare/v0.2.0...v0.3.0
- Commit ``CHANGELOG.md`` and ``celery_tracker/__init__.py`` with message ``:rocket: {version}`` (where version is your release version)
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
Built Distribution
File details
Details for the file django_celery_tracker-1.0.0.tar.gz
.
File metadata
- Download URL: django_celery_tracker-1.0.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46fa76928af1f4929512e964d9bda6210750b461d459e516b7064dcf5586fd06 |
|
MD5 | 8116c0dc11275362d762c66ec32cda37 |
|
BLAKE2b-256 | d59ef8a383d7c7a3427710c23120f6af7295763f40449ff2835720cc0abb29ee |
Provenance
File details
Details for the file django_celery_tracker-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_celery_tracker-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40ce665a48c7437782c5199261bd1c67104dcee60bdecce974c3239a89a53c0f |
|
MD5 | c14734fff3605f00f8c5737fb3095774 |
|
BLAKE2b-256 | 63d25be50a530f3a841e85546620dd450be67f5493884714be014721df7f1105 |