Skip to main content

Celery tracker for Django.

Project description

Build status coverage

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:

  1. Install django-celery-tracker:

$ pip install django-celery-tracker
  1. Add celery_tracker to INSTALLED_APPS in your Django settings file:

INSTALLED_APPS = (
    ...
    'celery_tracker',
)
  1. Create the database tables by applying migrations:

$ python manage.py migrate celery_tracker
  1. 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

django_celery_tracker-1.0.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

django_celery_tracker-1.0.0-py2.py3-none-any.whl (7.1 kB view details)

Uploaded Python 2 Python 3

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

Hashes for django_celery_tracker-1.0.0.tar.gz
Algorithm Hash digest
SHA256 46fa76928af1f4929512e964d9bda6210750b461d459e516b7064dcf5586fd06
MD5 8116c0dc11275362d762c66ec32cda37
BLAKE2b-256 d59ef8a383d7c7a3427710c23120f6af7295763f40449ff2835720cc0abb29ee

See more details on using hashes here.

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

Hashes for django_celery_tracker-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 40ce665a48c7437782c5199261bd1c67104dcee60bdecce974c3239a89a53c0f
MD5 c14734fff3605f00f8c5737fb3095774
BLAKE2b-256 63d25be50a530f3a841e85546620dd450be67f5493884714be014721df7f1105

See more details on using hashes here.

Provenance

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