#!/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
