Skip to main content

A simple Django app to let you know if huey tasks are working without errors.

Installation

pip install django-huey-logger

Requirements

Needs huey installed and configured.

Usage

In your settings.py

INSTALLED_APPS = [
    'huey_logger',
    # Django modules
    ...
]

Run migrations

python manage.py migrate huey_logger

Using the decorators

Keep track of your periodic tasks by adding a decorator to your functions

from huey_logger.decorators import log_db_periodic_task, log_db_task
from huey import crontab


@log_db_periodic_task(crontab(hour='*/1', minute=0))
def periodic_do_something():
    print("I'm saying hello every hour :)")

@log_db_task
def do_something_in_background():
    print("I'm saying hello under the hood")

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-huey-logger-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_huey_logger-1.0.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file django-huey-logger-1.0.0.tar.gz.

File metadata

  • Download URL: django-huey-logger-1.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/18.2 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.0

File hashes

Hashes for django-huey-logger-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0a706aaabf474a9135f046422a1a7d4b72e9478fe5110955636202c7d58d288f
MD5 0d78996a24ab45ed42b65ca9adb26c0d
BLAKE2b-256 866ced72bdbcfcbe2a8190fe7bd7617e1828519fd104c8ec774ea734c4507ea2

See more details on using hashes here.

File details

Details for the file django_huey_logger-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: django_huey_logger-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/18.2 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.0

File hashes

Hashes for django_huey_logger-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6915c5e662ab4c7cb03adceefd85f08e025227b5c49d4033d2f40884fb08461d
MD5 e57e5ea04e80b946d8d5781c9dd2e7b1
BLAKE2b-256 5e2588ba19e79fdad8d2c9d5c251ca91b1650c9a3542cd3a068219545993b021

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page