![]()
allianceauth-celeryanalytics
Celery Task and Worker Analytics for Alliance Auth
celeryanalytics
celery task and worker analytics for Alliance Auth.
Installation
With your venv active,
-
Pip install
pip install -U allianceauth-celeryanalytics -
Add
celeryanalyticsto yourINSTALLED_APPSin yourlocal.py -
From terminal run migrations
python manage.py migrate celeryanalyticspython manage.py collectstatic -
Optional if you wish to havve the module cealup old tasks its self run
python manage.py ca_setup_task
Usage
This module has no permissions. it will start logging all completed and failed tasks on install using the celery signals. To view the UI you need to be superuser, and select Task Queues from the side menu
Task Menu
Toggle sections of the UI on/off here

Workers
Shows basic info on alll running workers

NOTE if you only have a single worker shown, you are probably missing the -n %(program_name)s_%(process_num)02d parameter in your the supervisor config commands.
Active Tasks
Shows tasks that are running in the what workers

Future Tasks
Shows tasks that are held by workers with a future ETA. These may have been retries with a cool down or tasks scheduled to run in the future.

Queue Backlog
Shows tasks split by Queue and Priority that are still pending in the queue

Specifics on failed/completed tasks
View the successful/failed tasks in admin of your auth. as below;



Cleanup
If you wish to perform a tidy-up of the database you can run the following command from your terminal
python manage.py ca_run_housekeeping
Settings
CA_HOUSEKEEPING_DB_BACKLOG defines how long (in days) records should be kept in
your database. Default is 14 days.
CA_RESULT_MAX_LEN if you are using a results fed app you may wish to limit the result spam to database.
in your local.py add the setting CA_RESULT_MAX_LEN=1000 set the integer to what ever you want as your max length. Default is -1 or unlimited.
CA_LOG_SUCCESS_TO_DB If you don't want the module to log Successful Tasks to database, set this to False. Default is True
CA_LOG_FAILURE_TO_DB If you don't want the module to log Failed Tasks to database, set this to False. Default is True
Issues
Please remember to report any celeryanalytics related issues using the issues on this repository.
No reviews yet...
Python Requirements
- allianceauth<5,>=3
- django-ninja<2,>=1.0
Required Python packages to be installed and other Python requirement.
App Dependencies
Required apps:
-
Used by apps:
-
Dependencies to other apps registered in this app directory.
Classifiers
- Environment :: Web Environment
- Framework :: Celery
- Framework :: Django
- Framework :: Django :: 4.0
- Framework :: Django :: 4.2
- Intended Audience :: Developers
- License :: OSI Approved :: MIT License
- Operating System :: OS Independent
- Programming Language :: Python
- Programming Language :: Python :: 3 :: Only
- Programming Language :: Python :: 3.10
- Programming Language :: Python :: 3.11
- Programming Language :: Python :: 3.12
- Programming Language :: Python :: 3.8
- Programming Language :: Python :: 3.9
- Programming Language :: Python :: Implementation :: CPython
- Topic :: Internet :: WWW/HTTP
- Topic :: Internet :: WWW/HTTP :: Dynamic Content
Version
0.0.7
License
MIT License
Homepage
https://github.com/Solar-Helix-Independent-Transport/allianceauth-celeryanalytics
PyPI
https://pypi.org/project/allianceauth-celeryanalytics/
Last updated
1 week, 3 days ago
First published
3 years, 10 months ago
Category
Administration
Rating
-Authors
Aaron Kable
Maintainers
-
Please login to see more options.