Skip to main content

celeryanalytics

celery task and worker analytics for Alliance Auth.

Installation

With your venv active,

  1. Pip install

    pip install -U allianceauth-celeryanalytics

  2. Add celeryanalytics to your INSTALLED_APPS in your local.py

  3. From terminal run migrations

    python manage.py migrate celeryanalytics python manage.py collectstatic

  4. 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 Imgur

Workers

Shows basic info on alll running workers

Imgur

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 Imgur

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.

Imgur

Queue Backlog

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

Imgur

Specifics on failed/completed tasks

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

Admin Menu

Failures

Details

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.

Metadata

Release files for allianceauth-celeryanalytics 0.1.1

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

Source distribution (sdist)

Source distribution for allianceauth-celeryanalytics 0.1.1
File Size Uploaded
allianceauth_celeryanalytics-0.1.1.tar.gz 780.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for allianceauth-celeryanalytics 0.1.1
File Interpreter ABI Platform
allianceauth_celeryanalytics-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 1.6 MB

Release files / allianceauth_celeryanalytics-0.1.1.tar.gz

Download URL allianceauth_celeryanalytics-0.1.1.tar.gz
Size 780.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3e6a19a58454e7384f10e95a25ab24dfe787d85c6cb29aefc84e027443cf300d
BLAKE2b-256 checksum
How to use checksums
94bc96d9806f170f66d60def583ef886cc73439428997c3c935ae2a7b00845bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / allianceauth_celeryanalytics-0.1.1-py3-none-any.whl

Download URL allianceauth_celeryanalytics-0.1.1-py3-none-any.whl
Size 796.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
776c8f696907da8748528ea4e277220752bc4f71e53d24d767b9558a3e30c1ca
BLAKE2b-256 checksum
How to use checksums
05ad2fe59eabb9560e91ce39d4af4a1991250201408a4bcfc26916bd38ae907c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

1 release file

0.0.5

1 release file

0.0.3

1 release file

0.0.2

1 release file

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