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")

Release files for django-huey-logger 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-huey-logger 1.0.0
File Size Uploaded
django-huey-logger-1.0.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-huey-logger 1.0.0
File Interpreter ABI Platform
django_huey_logger-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / django-huey-logger-1.0.0.tar.gz

Download URL django-huey-logger-1.0.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0a706aaabf474a9135f046422a1a7d4b72e9478fe5110955636202c7d58d288f
BLAKE2b-256 checksum
How to use checksums
866ced72bdbcfcbe2a8190fe7bd7617e1828519fd104c8ec774ea734c4507ea2
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / django_huey_logger-1.0.0-py3-none-any.whl

Download URL django_huey_logger-1.0.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6915c5e662ab4c7cb03adceefd85f08e025227b5c49d4033d2f40884fb08461d
BLAKE2b-256 checksum
How to use checksums
5e2588ba19e79fdad8d2c9d5c251ca91b1650c9a3542cd3a068219545993b021
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page