Loading
PLAT-2804
Made the kpis_update_script and the plausible_script automated.
Created two separated Celery tasks for each script to be run at the end of each month and the result to be displayed using custom logging.
More info in scripts/README.rst
Sample output testing locally:
docker compose run --rm monthly_reports_e2e scripts/kpis_update_script.py 2026-05 --mode monthly
INFO:kpis_update_script: [2026-07-06 16:46:27] Starting monthly processing for 2026-05
...
INFO:kpis_update_script: BOOKS: 12615
INFO:kpis_update_script: PUBLISHERS: 73
Files Changed
Dockerfileconfig/requirements.txtconfig/supervisord-workers.confdocker-compose.ymlscripts/README.rstscripts/kpis_update_script.pyscripts/plausible_script.pyscripts/tests/e2e_test_monthly_reports.pyscripts/tests/test_kpis_update_script.pyscripts/tests/test_plausible_script.pysetup/metrics_db/Dockerfilesrc/tasks/monthly_reports.pysrc/tasks/config.pysrc/tasks/tests/test_monthly_reports.pysrc/tasks/tests/test_beat_schedule.py
MR for the Kubernetes values:
Edited by Cristian Garcia