Clean 10 rooms per night

This commit is contained in:
Nathan McCarty 2023-06-30 09:06:38 -04:00
parent 9a090586f6
commit 3b6a66f0bb
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ set -eou pipefail
# Get the list of rooms with no local users
empty_rooms() {
psql -d synapse -c "SELECT room_id FROM room_stats_current WHERE local_users_in_room = 0 \
ORDER BY current_state_events DESC LIMIT 3;" -t --csv
ORDER BY current_state_events DESC LIMIT 10;" -t --csv
}
# Delete a room and purge its history