feature/limpieza-periodica
This commit is contained in:
8
scripts/run_layout_import_janitor.sh
Normal file
8
scripts/run_layout_import_janitor.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Ejecuta una pasada del janitor de layouts CSV (tarea Celery cleanup_orphan_layout_imports).
|
||||
# Requiere stack levantado: docker compose up -d worker valkey postgres-a76
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
CONTAINER="${CELERY_WORKER_CONTAINER:-worker}"
|
||||
docker compose exec -T "$CONTAINER" celery -A core.celery_app call cleanup_orphan_layout_imports
|
||||
Reference in New Issue
Block a user