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")
Metadata
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-huey-logger-1.0.0.tar.gz | 4.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for django-huey-logger 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.