Files
mctf/dark-tariff/cleaner/cleaner.sh
T
TakuyaYagam1 13f936bee9 chore: import MCTF services
- Added all seven issued service trees without omissions.
- Preserved the supplied runtime configuration, binaries, and assets.
2026-11-29 12:25:29 +03:00

11 lines
196 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
while true; do
psql --no-psqlrc --set=ON_ERROR_STOP=1 <<'SQL'
delete from billing.reading
where created_at <= now() - interval '10 minutes';
SQL
sleep 60
done