Skip to main content

Housekeeping for Allianceauth Celery Analytics

Project description

Alliance Auth Celery Analytics Housekeeping

Housekeeping for Alliance Auth Celery Analytics

pip install allianceauth-celeryanalytics-housekeeping

In local.py add celeryanalytics_housekeeping to your INSTALLED_APPS.

Also add the following:

## AA Celery Analytics Housekeeping
if (
    "celeryanalytics" in INSTALLED_APPS
    and "celeryanalytics_housekeeping" in INSTALLED_APPS
):
    # Keep 10 days (default)
    CELERYANALYTICS_HOUSEKEEPING_DB_BACKLOG = 10

    # Run every hour
    CELERYBEAT_SCHEDULE["celeryanalytics_housekeeping.tasks.run_housekeeping"] = {
        "task": "celeryanalytics_housekeeping.tasks.run_housekeeping",
        "schedule": crontab(minute=0, hour=0),
    }

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

Built Distribution

Supported by

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