A simple Django app to let you know if huey tasks are working without errors.
Project description
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")
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for django_huey_logger-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6915c5e662ab4c7cb03adceefd85f08e025227b5c49d4033d2f40884fb08461d |
|
MD5 | e57e5ea04e80b946d8d5781c9dd2e7b1 |
|
BLAKE2b-256 | 5e2588ba19e79fdad8d2c9d5c251ca91b1650c9a3542cd3a068219545993b021 |