Skip to main content

Celery Task and Worker Analytics for Alliance Auth

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

allianceauth_celeryanalytics-0.0.8.tar.gz (336.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

allianceauth_celeryanalytics-0.0.8-py3-none-any.whl (345.1 kB view details)

Uploaded Python 3

File details

Details for the file allianceauth_celeryanalytics-0.0.8.tar.gz.

File metadata

File hashes

Hashes for allianceauth_celeryanalytics-0.0.8.tar.gz
Algorithm Hash digest
SHA256 ffe3f111bceacd997040a85849d21c6beb79808cace2695f9f1f1675897f0731
MD5 4b3cc580106c027c78c8712b7fe28541
BLAKE2b-256 15cf5ff8f05bf4ed4e93f2fc6ae66e77a2722ebe027e3b4459c3e18f659c34f1

See more details on using hashes here.

File details

Details for the file allianceauth_celeryanalytics-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for allianceauth_celeryanalytics-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c0df6c02ed739e0ff611d030692a33e01650dd2bd6a8b371546b21a3e7e5b299
MD5 654b1c4fdae6717a56ef798b15d32c78
BLAKE2b-256 ac9c927c862691e5a023385d34f75b2f66e4607e04a012ffd34ebb04eaff9a2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page